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:
Vincent Donnefort
2022-07-15 16:50:38 +01:00
committed by Quentin Perret
parent e2eb8807e6
commit 9896e587b0

View File

@@ -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)