mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
ANDROID: KVM: arm64: Expose hyp_va to modules
Modules will need to convert physical addresses in EL2 linear map addresses, so expose hyp_va to modules. Bug: 264070847 Change-Id: I641ab3943a029072c351f5a422e2d9d2cbb240be Signed-off-by: Quentin Perret <qperret@google.com>
This commit is contained in:
@@ -39,6 +39,7 @@ struct pkvm_module_ops {
|
||||
void* (*memcpy)(void *to, const void *from, size_t count);
|
||||
void* (*memset)(void *dst, int c, size_t count);
|
||||
phys_addr_t (*hyp_pa)(void *x);
|
||||
void* (*hyp_va)(phys_addr_t phys);
|
||||
unsigned long (*kern_hyp_va)(unsigned long x);
|
||||
};
|
||||
|
||||
|
||||
@@ -115,6 +115,7 @@ const struct pkvm_module_ops module_ops = {
|
||||
.memcpy = memcpy,
|
||||
.memset = memset,
|
||||
.hyp_pa = hyp_virt_to_phys,
|
||||
.hyp_va = hyp_phys_to_virt,
|
||||
.kern_hyp_va = __kern_hyp_va,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user