KVM: arm64: Drop pkvm_mem_transition for host/hyp donations
authorQuentin Perret <qperret@google.com>
Fri, 10 Jan 2025 12:19:36 +0000 (12:19 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 12 Jan 2025 10:46:39 +0000 (10:46 +0000)
commit6f91d31d47c57953da68e1a91240ae2543b00172
treeb38dc2f5a7a8513a07a382a4628188fb2ac8b539
parent7cbf7c37718e67f2c994d4ed4ca7128fe06a4f60
KVM: arm64: Drop pkvm_mem_transition for host/hyp donations

Simplify the __pkvm_host_donate_hyp() and pkvm_hyp_donate_host() paths
by not using the pkvm_mem_transition machinery. As the last users of
this, also remove all the now unused code.

No functional changes intended.

Signed-off-by: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20250110121936.1559655-4-qperret@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/nvhe/mem_protect.c