KVM: arm64: Handle FFA_MEM_RECLAIM calls from the host
authorWill Deacon <will@kernel.org>
Tue, 23 May 2023 10:18:24 +0000 (11:18 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 1 Jun 2023 21:34:51 +0000 (21:34 +0000)
commit0e3bcb49c13567adb821c4251dcfd04ad7e1179f
tree7ca21f8da213f1fe4f200fa55cde8d9eebbd8d67
parent43609000177625b1c93c55a16a07aee5a4258260
KVM: arm64: Handle FFA_MEM_RECLAIM calls from the host

Intecept FFA_MEM_RECLAIM calls from the host and transition the host
stage-2 page-table entries from the SHARED_OWNED state back to the OWNED
state once EL3 has confirmed that the secure mapping has been reclaimed.

Signed-off-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20230523101828.7328-8-will@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/nvhe/ffa.c