ANDROID: KVM: arm64: Fix pKVM module loading close

The HVC number limit must be the id inside the enum, not the fully
encoded version. Without this fix, all HVC would be rejected after
closing the pKVM modules door.

Bug: 254835242
Change-Id: Ia338859e07412ea1c2377b90ddee2c29c6fb0755
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
This commit is contained in:
Vincent Donnefort
2023-04-06 10:48:57 +01:00
parent 586316589b
commit cbe59d40a2

View File

@@ -1328,7 +1328,7 @@ int reset_pkvm_priv_hcall_limit(void)
return -EACCES;
addr = hyp_fixmap_map(__hyp_pa(&pkvm_priv_hcall_limit));
*addr = KVM_HOST_SMCCC_FUNC(__pkvm_prot_finalize);
*addr = __KVM_HOST_SMCCC_FUNC___pkvm_prot_finalize;
hyp_fixmap_unmap();
return 0;