]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
KVM: arm64: Remove duplicate configuration for SCTLR_EL1.{EE,E0E}
authorMarc Zyngier <maz@kernel.org>
Mon, 2 Feb 2026 18:43:11 +0000 (18:43 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 5 Feb 2026 08:59:28 +0000 (08:59 +0000)
We already have specific constraints for SCTLR_EL1.{EE,E0E}, and
making them depend on FEAT_AA64EL1 is just buggy.

Fixes: 6bd4a274b026e ("KVM: arm64: Convert SCTLR_EL1 to config-driven sanitisation")
Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260202184329.2724080-3-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/config.c

index 9c04f895d376947a20d0ca91b3d7e1953c9e3469..0bcdb398857344c1e050304d8d2e2a0c6e9ebddb 100644 (file)
@@ -1140,8 +1140,6 @@ static const struct reg_bits_to_feat_map sctlr_el1_feat_map[] = {
                   SCTLR_EL1_TWEDEn,
                   FEAT_TWED),
        NEEDS_FEAT(SCTLR_EL1_UCI        |
-                  SCTLR_EL1_EE         |
-                  SCTLR_EL1_E0E        |
                   SCTLR_EL1_WXN        |
                   SCTLR_EL1_nTWE       |
                   SCTLR_EL1_nTWI       |