• Marc Zyngier's avatar
    Merge branch kvm-arm64/idregs-6.12 into kvmarm/fixes · 9b7c3dd5
    Marc Zyngier authored
    * kvm-arm64/idregs-6.12:
      : .
      : Make some fields of ID_AA64DFR0_EL1 and ID_AA64PFR1_EL1
      : writable from userspace, so that a VMM can influence the
      : set of guest-visible features.
      :
      : - for ID_AA64DFR0_EL1: DoubleLock, WRPs, PMUVer and DebugVer
      :   are writable (courtesy of Shameer Kolothum)
      :
      : - for ID_AA64PFR1_EL1: BT, SSBS, CVS2_frac are writable
      :   (courtesy of Shaoqin Huang)
      : .
      KVM: selftests: aarch64: Add writable test for ID_AA64PFR1_EL1
      KVM: arm64: Allow userspace to change ID_AA64PFR1_EL1
      KVM: arm64: Use kvm_has_feat() to check if FEAT_SSBS is advertised to the guest
      KVM: arm64: Disable fields that KVM doesn't know how to handle in ID_AA64PFR1_EL1
      KVM: arm64: Make the exposed feature bits in AA64DFR0_EL1 writable from userspace
    Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
    9b7c3dd5
set_id_regs.c 17.4 KB