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:
committed by
Keir Fraser
parent
f3bc556e62
commit
8a68b06812
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user