mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
ANDROID: KVM: arm64: Support unaligned fixmap in the nVHE hyp
Return the fixmap VA with the page offset, instead of the page base address. Bug: 244543039 Bug: 229972309 Change-Id: I40c342f84e3cd395156ef846f0434c028d4e3fa3 Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
This commit is contained in:
committed by
Quentin Perret
parent
ebc746230d
commit
832e890b23
@@ -266,7 +266,7 @@ void *hyp_fixmap_map(phys_addr_t phys)
|
||||
WRITE_ONCE(*ptep, pte);
|
||||
dsb(ishst);
|
||||
|
||||
return (void *)slot->addr;
|
||||
return (void *)slot->addr + offset_in_page(phys);
|
||||
}
|
||||
|
||||
static void fixmap_clear_slot(struct hyp_fixmap_slot *slot)
|
||||
|
||||
Reference in New Issue
Block a user