mbox series

[GIT,PULL] KVM/arm64 fixes for 6.1, take #3

Message ID 20221102091036.2106882-1-maz@kernel.org
State New
Headers show
Series [GIT,PULL] KVM/arm64 fixes for 6.1, take #3 | expand

Pull-request

git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.1-3

Message

Marc Zyngier Nov. 2, 2022, 9:10 a.m. UTC
Paolo,

Here's another set of fixes for 6.1. Two of them are critical fixes
(MTE support triggering an invalid pointer dereference in nVHE
configurations, SME trapping not enabled in VHE configurations).
Thankfully, these configuration are pretty rare, because hardly anyone
is making us of MTE yet, and that SME HW simply doesn't exist in the
wild.

The rest is a limited set of fixes for relatively harmless bugs and
documentation update.

Please pull,

	M.

The following changes since commit 247f34f7b80357943234f93f247a1ae6b6c3a740:

  Linux 6.1-rc2 (2022-10-23 15:27:33 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.1-3

for you to fetch changes up to be0ddf5293a7895a8c9096e1a8560930c6a0ab3f:

  arm64: booting: Document our requirements for fine grained traps with SME (2022-11-01 19:30:34 +0000)

----------------------------------------------------------------
KVM/arm64 fixes for 6.1, take #3

- Fix the pKVM stage-1 walker erronously using the stage-2 accessor

- Correctly convert vcpu->kvm to a hyp pointer when generating
  an exception in a nVHE+MTE configuration

- Check that KVM_CAP_DIRTY_LOG_* are valid before enabling them

- Fix SMPRI_EL1/TPIDR2_EL0 trapping on VHE

- Document the boot requirements for FGT when entering the kernel
  at EL1

----------------------------------------------------------------
Gavin Shan (1):
      KVM: Check KVM_CAP_DIRTY_LOG_{RING, RING_ACQ_REL} prior to enabling them

Marc Zyngier (1):
      KVM: arm64: Fix SMPRI_EL1/TPIDR2_EL0 trapping on VHE

Mark Brown (1):
      arm64: booting: Document our requirements for fine grained traps with SME

Quentin Perret (1):
      KVM: arm64: Use correct accessor to parse stage-1 PTEs

Ryan Roberts (1):
      KVM: arm64: Fix bad dereference on MTE-enabled systems

 Documentation/arm64/booting.rst         |  8 ++++++++
 arch/arm64/kvm/hyp/exception.c          |  3 ++-
 arch/arm64/kvm/hyp/include/hyp/switch.h | 20 ++++++++++++++++++++
 arch/arm64/kvm/hyp/nvhe/mem_protect.c   |  2 +-
 arch/arm64/kvm/hyp/nvhe/switch.c        | 26 --------------------------
 arch/arm64/kvm/hyp/vhe/switch.c         |  8 --------
 virt/kvm/kvm_main.c                     |  3 +++
 7 files changed, 34 insertions(+), 36 deletions(-)