diff options
| author | Sascha Bischoff <Sascha.Bischoff@arm.com> | 2026-03-19 18:58:33 +0300 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-03-19 21:21:29 +0300 |
| commit | 61d4ad518312ecddef2331ea3d22902b4eac0e0a (patch) | |
| tree | 889a101eeec41134f2e73f5ab1461ea47138cfbe | |
| parent | 5aefaf11f9af5d58257ad3d0c71c447a41963069 (diff) | |
| download | linux-61d4ad518312ecddef2331ea3d22902b4eac0e0a.tar.xz | |
KVM: arm64: gic-v5: Hide FEAT_GCIE from NV GICv5 guests
Currently, NV guests are not supported with GICv5. Therefore, make
sure that FEAT_GCIE is always hidden from such guests.
Signed-off-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/20260319154937.3619520-35-sascha.bischoff@arm.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
| -rw-r--r-- | arch/arm64/kvm/nested.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/kvm/nested.c b/arch/arm64/kvm/nested.c index 2c43097248b2..efd5d21c7ac7 100644 --- a/arch/arm64/kvm/nested.c +++ b/arch/arm64/kvm/nested.c @@ -1558,6 +1558,11 @@ u64 limit_nv_id_reg(struct kvm *kvm, u32 reg, u64 val) ID_AA64PFR1_EL1_MTE); break; + case SYS_ID_AA64PFR2_EL1: + /* GICv5 is not yet supported for NV */ + val &= ~ID_AA64PFR2_EL1_GCIE; + break; + case SYS_ID_AA64MMFR0_EL1: /* Hide ExS, Secure Memory */ val &= ~(ID_AA64MMFR0_EL1_EXS | |
