[PATCH 64/89] KVM: arm64: Advertise GICv3 sysreg interface to protected guests
Will Deacon
will at kernel.org
Thu May 19 06:41:39 PDT 2022
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 at kernel.org>
---
arch/arm64/include/asm/kvm_pkvm.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/include/asm/kvm_pkvm.h b/arch/arm64/include/asm/kvm_pkvm.h
index 6f13f62558dd..062ae2ffbdfb 100644
--- a/arch/arm64/include/asm/kvm_pkvm.h
+++ b/arch/arm64/include/asm/kvm_pkvm.h
@@ -43,11 +43,13 @@ void kvm_shadow_destroy(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_FP) | \
ARM64_FEATURE_MASK(ID_AA64PFR0_ASIMD) | \
+ ARM64_FEATURE_MASK(ID_AA64PFR0_GIC) | \
ARM64_FEATURE_MASK(ID_AA64PFR0_DIT) \
)
--
2.36.1.124.g0e6072fb45-goog
More information about the linux-arm-kernel
mailing list