ANDROID: KVM: arm64: Fix relinquish filtering

The pKVM hypervisor needs to report to the host when memory is being
relinquished. Add the SMC to the allow-list.

Bug: 357781595
Bug: 405057465
Fix: 88b4844da3 ("ANDROID: KVM: arm64: Implement MEM_RELINQUISH SMCCC hypercall")
Change-Id: I94aed0c235200e99e1d9d1f9d3d719d336459780
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
This commit is contained in:
Vincent Donnefort
2025-05-09 19:02:50 +01:00
parent d9d550aef0
commit 564d5ceda6

View File

@@ -79,6 +79,7 @@ static bool kvm_smccc_default_allowed(u32 func_id)
case ARM_SMCCC_ARCH_FEATURES_FUNC_ID:
case ARM_SMCCC_VENDOR_HYP_KVM_MEM_SHARE_FUNC_ID:
case ARM_SMCCC_VENDOR_HYP_KVM_MEM_UNSHARE_FUNC_ID:
case ARM_SMCCC_VENDOR_HYP_KVM_MEM_RELINQUISH_FUNC_ID:
return true;
default:
/* PSCI 0.2 and up is in the 0:0x1f range */