ANDROID: KVM: arm64: Advertise GICv3 sysreg interface to protected guests

Advertise the system register GICv3 CPU interface to protected guests
as that is the only supported configuration under pKVM.

Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Will Deacon <willdeacon@google.com>
Bug: 233587962
Change-Id: Iea2aeaae7776424727f6833c21597b6236284796
This commit is contained in:
Will Deacon
2022-05-16 22:41:51 +01:00
committed by Will Deacon
parent 82e11002e1
commit 697fe62abb

View File

@@ -43,11 +43,13 @@ void pkvm_destroy_hyp_vm(struct kvm *kvm);
/*
* Allow for protected VMs:
* - Floating-point and Advanced SIMD
* - GICv3(+) system register interface
* - Data Independent Timing
*/
#define PVM_ID_AA64PFR0_ALLOW (\
ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_FP) | \
ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_AdvSIMD) | \
ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_GIC) | \
ARM64_FEATURE_MASK(ID_AA64PFR0_EL1_DIT) \
)