Commit e5d280f3 authored by Mostafa Saleh's avatar Mostafa Saleh Committed by Quentin Perret
Browse files

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: default avatarMostafa Saleh <smostafa@google.com>
Signed-off-by: default avatarQuentin Perret <qperret@google.com>
parent e3f64093
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment