mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +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> Signed-off-by: Quentin Perret <qperret@google.com>
This commit is contained in:
committed by
Quentin Perret
parent
e2eb8807e6
commit
9896e587b0
@@ -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