FROMLIST: KVM: arm64: Support unaligned fixmap in the nVHE hyp

Return the fixmap VA with the page offset, instead of the page base
address.

Bug: 357781595
Link: https://lore.kernel.org/all/20240911093029.3279154-6-vdonnefort@google.com/
Change-Id: I23704024c4cfa607361c0900f6371b0a4780745e
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
This commit is contained in:
Vincent Donnefort
2024-09-11 10:30:21 +01:00
committed by Keir Fraser
parent f3bc556e62
commit 8a68b06812
+1 -1
View File
@@ -240,7 +240,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)