ANDROID: arm64: kvm: s2mpu: Update address of s2mpu struct
As the the s2mpu el2 driver is loaded at run time, we can't convert its address from kernel to hyp using kern_hyp_va. The kernel module will be responsible of sending the address of the struct as hyp address in s2mpu hypercalls, currently the load address of the modules is returned as the token of the module. Although the passed arguments is the driver struct address, but the address passed is not a kernel address, so pass it as u64 to avoid confusing it as a kernel address. Bug: 261857213 Change-Id: Ieb787f83d7c07ada2c8565f0e34cdc6de71aff6f Signed-off-by:Mostafa Saleh <smostafa@google.com> Signed-off-by:
Quentin Perret <qperret@google.com>
Loading
Please sign in to comment