]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Introduce __pkvm_host_donate_guest()
authorWill Deacon <will@kernel.org>
Mon, 30 Mar 2026 14:48:13 +0000 (15:48 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 30 Mar 2026 15:58:08 +0000 (16:58 +0100)
commit1e579adca1774b3713d1efa67d92a88ec86c04fa
tree5f41bd6bb3dadaf8416534aa58172e3249a53c64
parent6c58f914eb9c4ce5225d03183ae1290d72b5f639
KVM: arm64: Introduce __pkvm_host_donate_guest()

In preparation for supporting protected VMs, whose memory pages are
isolated from the host, introduce a new pKVM hypercall to allow the
donation of pages to a guest.

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-13-will@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_asm.h
arch/arm64/include/asm/kvm_pgtable.h
arch/arm64/kvm/hyp/include/nvhe/mem_protect.h
arch/arm64/kvm/hyp/nvhe/hyp-main.c
arch/arm64/kvm/hyp/nvhe/mem_protect.c