Skip to contentSkip to conversation

KVM/arm64 fixes for 6.9, part #1

GIT PULL Oliver Upton 2 participants 2 messages Apr 2, 2024 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

+cc lists...

Quoted 72 lines · Oliver Upton

Hi Paolo,

Here's the first set of fixes for 6.9. Several good fixes piled up here, partly because I've had limited availability due to travel.

Details are in the tag. Please pull.

Signature · 64 lines
Best,
Oliver

The following changes since commit 4cece764965020c22cff7665b18a012006359095:

  Linux 6.9-rc1 (2024-03-24 14:10:05 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.9-1

for you to fetch changes up to d96c66ab9fb3ad8b243669cf6b41e68d0f7f9ecd:

  KVM: arm64: Rationalise KVM banner output (2024-04-01 01:33:52 -0700)

----------------------------------------------------------------
KVM/arm64 fixes for 6.9, part #1

 - Ensure perf events programmed to count during guest execution
   are actually enabled before entering the guest in the nVHE
   configuration.

 - Restore out-of-range handler for stage-2 translation faults.

 - Several fixes to stage-2 TLB invalidations to avoid stale
   translations, possibly including partial walk caches.

 - Fix early handling of architectural VHE-only systems to ensure E2H is
   appropriately set.

 - Correct a format specifier warning in the arch_timer selftest.

 - Make the KVM banner message correctly handle all of the possible
   configurations.

----------------------------------------------------------------
Marc Zyngier (2):
      arm64: Fix early handling of FEAT_E2H0 not being implemented
      KVM: arm64: Rationalise KVM banner output

Oliver Upton (1):
      KVM: arm64: Fix host-programmed guest events in nVHE

Sean Christopherson (1):
      KVM: selftests: Fix __GUEST_ASSERT() format warnings in ARM's arch timer test

Will Deacon (4):
      KVM: arm64: Don't defer TLB invalidation when zapping table entries
      KVM: arm64: Don't pass a TLBI level hint when zapping table entries
      KVM: arm64: Use TLBI_TTL_UNKNOWN in __kvm_tlb_flush_vmid_range()
      KVM: arm64: Ensure target address is granule-aligned for range TLBI

Wujie Duan (1):
      KVM: arm64: Fix out-of-IPA space translation fault handling

 arch/arm64/kernel/head.S                         | 29 +++++++++++++-----------
 arch/arm64/kvm/arm.c                             | 13 ++++-------
 arch/arm64/kvm/hyp/nvhe/tlb.c                    |  3 ++-
 arch/arm64/kvm/hyp/pgtable.c                     | 23 ++++++++++++-------
 arch/arm64/kvm/hyp/vhe/tlb.c                     |  3 ++-
 arch/arm64/kvm/mmu.c                             |  2 +-
 include/kvm/arm_pmu.h                            |  2 +-
 tools/testing/selftests/kvm/aarch64/arch_timer.c |  2 +-
 8 files changed, 43 insertions(+), 34 deletions(-)
maintainer
#2 lore raw
Quoted 26 lines · Oliver Upton

+cc lists...

Quoted 22 lines · Oliver Upton

Hi Paolo,

Here's the first set of fixes for 6.9. Several good fixes piled up here, partly because I've had limited availability due to travel.

Details are in the tag. Please pull.

--
Best,
Oliver

The following changes since commit 4cece764965020c22cff7665b18a012006359095:

Linux 6.9-rc1 (2024-03-24 14:10:05 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-6.9-1

for you to fetch changes up to d96c66ab9fb3ad8b243669cf6b41e68d0f7f9ecd:

KVM: arm64: Rationalise KVM banner output (2024-04-01 01:33:52 -0700)

Pulled, thanks.

Paolo

Quoted 50 lines
Quoted 49 lines

----------------------------------------------------------------
KVM/arm64 fixes for 6.9, part #1

- Ensure perf events programmed to count during guest execution are actually enabled before entering the guest in the nVHE configuration.

- Restore out-of-range handler for stage-2 translation faults.

- Several fixes to stage-2 TLB invalidations to avoid stale translations, possibly including partial walk caches.

- Fix early handling of architectural VHE-only systems to ensure E2H is appropriately set.

- Correct a format specifier warning in the arch_timer selftest.

- Make the KVM banner message correctly handle all of the possible configurations.

----------------------------------------------------------------
Marc Zyngier (2):
arm64: Fix early handling of FEAT_E2H0 not being implemented
KVM: arm64: Rationalise KVM banner output

Oliver Upton (1):
KVM: arm64: Fix host-programmed guest events in nVHE

Sean Christopherson (1):
KVM: selftests: Fix __GUEST_ASSERT() format warnings in ARM's arch timer test

Will Deacon (4):
KVM: arm64: Don't defer TLB invalidation when zapping table entries
KVM: arm64: Don't pass a TLBI level hint when zapping table entries
KVM: arm64: Use TLBI_TTL_UNKNOWN in __kvm_tlb_flush_vmid_range()
KVM: arm64: Ensure target address is granule-aligned for range TLBI

Wujie Duan (1):
KVM: arm64: Fix out-of-IPA space translation fault handling

 arch/arm64/kernel/head.S                         | 29 +++++++++++++-----------
 arch/arm64/kvm/arm.c                             | 13 ++++-------
 arch/arm64/kvm/hyp/nvhe/tlb.c                    |  3 ++-
 arch/arm64/kvm/hyp/pgtable.c                     | 23 ++++++++++++-------
 arch/arm64/kvm/hyp/vhe/tlb.c                     |  3 ++-
 arch/arm64/kvm/mmu.c                             |  2 +-
 include/kvm/arm_pmu.h                            |  2 +-
 tools/testing/selftests/kvm/aarch64/arch_timer.c |  2 +-
 8 files changed, 43 insertions(+), 34 deletions(-)