mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user