[GIT PULL] KVM/arm64 fixes for 6.13, part #2

From: Oliver Upton
Date: Tue Dec 03 2024 - 19:53:17 EST


Hi Paolo,

Another week, another batch of fixes. The most notable here is the MDCR_EL2
change from James, which addresses a rather stupid regression I introduced
in 6.13.

Please pull.

--
Thanks,
Oliver

The following changes since commit 13905f4547b050316262d54a5391d50e83ce613a:

KVM: arm64: Use MDCR_EL2.HPME to evaluate overflow of hyp counters (2024-11-20 17:23:32 -0800)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git/ tags/kvmarm-fixes-6.13-2

for you to fetch changes up to be7e611274224b23776469d7f7ce50e25ac53142:

KVM: arm64: vgic-its: Add error handling in vgic_its_cache_translation (2024-12-03 16:22:10 -0800)

----------------------------------------------------------------
KVM/arm64 fixes for 6.13, part #2

- Fix confusion with implicitly-shifted MDCR_EL2 masks breaking
SPE/TRBE initialization

- Align nested page table walker with the intended memory attribute
combining rules of the architecture

- Prevent userspace from constraining the advertised ASID width,
avoiding horrors of guest TLBIs not matching the intended context in
hardware

- Don't leak references on LPIs when insertion into the translation
cache fails

----------------------------------------------------------------
James Clark (1):
arm64: Fix usage of new shifted MDCR_EL2 values

Keisuke Nishimura (1):
KVM: arm64: vgic-its: Add error handling in vgic_its_cache_translation

Marc Zyngier (2):
KVM: arm64: Fix S1/S2 combination when FWB==1 and S2 has Device memory type
KVM: arm64: Do not allow ID_AA64MMFR0_EL1.ASIDbits to be overridden

arch/arm64/include/asm/el2_setup.h | 4 ++--
arch/arm64/kernel/hyp-stub.S | 4 ++--
arch/arm64/kvm/at.c | 11 +++++++++--
arch/arm64/kvm/hyp/nvhe/pkvm.c | 4 ++--
arch/arm64/kvm/sys_regs.c | 3 ++-
arch/arm64/kvm/vgic/vgic-its.c | 12 +++++++++++-
6 files changed, 28 insertions(+), 10 deletions(-)