]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
KVM: arm64: Make ID_AA64PFR0_EL1.RAS writable
authorMarc Zyngier <maz@kernel.org>
Sun, 17 Aug 2025 20:21:56 +0000 (21:21 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 21 Aug 2025 23:28:46 +0000 (16:28 -0700)
Make ID_AA64PFR0_EL1.RAS writable so that we can restore a VM from
a system without RAS to a RAS-equipped machine (or disable RAS
in the guest).

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Link: https://lore.kernel.org/r/20250817202158.395078-5-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/sys_regs.c

index 1b4114790024e52fa731f4358e2dbc3543ca4086..bf160693963c814f3da28b380a27bcc153c150a1 100644 (file)
@@ -2939,7 +2939,6 @@ static const struct sys_reg_desc sys_reg_descs[] = {
                    ~(ID_AA64PFR0_EL1_AMU |
                      ID_AA64PFR0_EL1_MPAM |
                      ID_AA64PFR0_EL1_SVE |
-                     ID_AA64PFR0_EL1_RAS |
                      ID_AA64PFR0_EL1_AdvSIMD |
                      ID_AA64PFR0_EL1_FP)),
        ID_FILTERED(ID_AA64PFR1_EL1, id_aa64pfr1_el1,