]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Annotate guest donations with handle and gfn in host stage-2
authorWill Deacon <will@kernel.org>
Mon, 30 Mar 2026 14:48:25 +0000 (15:48 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 30 Mar 2026 15:58:08 +0000 (16:58 +0100)
commit70346d632b4d98dd33391fa263ab8bed7d9d934f
tree8b29478f2d4b0eea9b1cb722d94dd0a7112797c5
parent44887977ab0fdaa0af4d1cc97cda413884c0ef86
KVM: arm64: Annotate guest donations with handle and gfn in host stage-2

Handling host kernel faults arising from accesses to donated guest
memory will require an rmap-like mechanism to identify the guest mapping
of the faulting page.

Extend the page donation logic to encode the guest handle and gfn
alongside the owner information in the host stage-2 pte.

Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Tested-by: Mostafa Saleh <smostafa@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
Link: https://patch.msgid.link/20260330144841.26181-25-will@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/nvhe/mem_protect.c