[GIT PULL] KVM changes for Linux 7.1-rc5
From: Paolo Bonzini
Date: Sun May 24 2026 - 03:43:55 EST
Linus,
The following changes since commit 6779b50faa562e6cca1aa6a4649a4d764c6c7e28:
Merge tag 'pci-v7.1-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci (2026-05-21 15:02:12 -0700)
are available in the Git repository at:
https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus
for you to fetch changes up to 9a12fa5213cfc391e0eed63902d3be98f0913765:
KVM: SVM: Disable AVIC IPI virtualization on Hygon Family 18h (erratum #1235) (2026-05-23 10:09:04 +0200)
----------------------------------------------------------------
Arm:
- Fix ITS EventID sanitisation when restoring an interrupt translation
table.
- Fix PPI memory leak when failing to initialise a vcpu.
- Correctly return an error when the validation of a hypervisor trace
descriptor fails, and limit this validation to protected mode only.
RISC-V:
- Fix invalid HVA warning in steal-time recording
- Return SBI_ERR_FAILURE to guest upon OOM in pmu_event_info()
and pmu_snapshot_set_shmem()
- Fix NULL pointer dereference in SBI v0.1 SEND_IPI handler
- Fix sign extension of value for MMIO loads
s390:
- Fix bugs in vSIE (nested virtualization) and UCONTROL, caused by the page
table rewrite.
x86:
- Apply erratum #1235 workaround (disable AVIC IPI virtualization) on Hygon
Family 18h, just like on AMD Family 17h.
- When KVM_CAP_X86_APIC_BUS_CYCLES_NS is queried on a specific VM, return
the VM's configured APIC bus frequency instead of the default. This
is less confusing (read: not wrong) and makes it easier to fill in CPUID
information that communicates the APIC bus frequency to the guest.
Selftests:
- Do not include glibc-internal <bits/endian.h>; it worked by chance and
broke building KVM selftests with musl.
----------------------------------------------------------------
Claudio Imbrenda (5):
KVM: s390: vsie: Fix memory leak when unshadowing
KVM: s390: Fix leaking kvm_s390_mmu_cache in case of errors
KVM: s390: vsie: Fix unshadowing logic
KVM: s390: vsie: Fix redundant rmap entries
KVM: s390: Properly reset zero bit in PGSTE
Hisam Mehboob (1):
KVM: selftests: elf: Include <endian.h> instead of <bits/endian.h>
Jiakai Xu (3):
RISC-V: KVM: Fix invalid HVA warning in steal-time recording
RISC-V: KVM: Fix NULL pointer dereference in SBI v0.1 SEND_IPI handler
RISC-V: KVM: Fix sign extension for MMIO loads
Michael Bommarito (2):
KVM: arm64: vgic-its: Reject restored DTE with out-of-range num_eventid_bits
KVM: arm64: vgic: Free private_irqs when init fails after allocation
Osama Abdelkader (2):
riscv: kvm: return SBI_ERR_FAILURE for pmu_snapshot_set_shmem() when OOM
riscv: kvm: return SBI_ERR_FAILURE for pmu_event_info() when OOM
Paolo Bonzini (3):
Merge tag 'kvmarm-fixes-7.1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
Merge tag 'kvm-s390-master-7.1-2' of https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD
Merge tag 'kvm-riscv-fixes-7.1-1' of https://github.com/kvm-riscv/linux into HEAD
Sean Christopherson (2):
KVM: x86: Return the VM's configured APIC bus frequency when queried
KVM: selftests: Verify that KVM returns the configured APIC cycle length
Tina Zhang (1):
KVM: SVM: Disable AVIC IPI virtualization on Hygon Family 18h (erratum #1235)
Vincent Donnefort (1):
KVM: arm64: Fix nVHE/pKVM hyp tracing error on invalid desc
arch/arm64/kvm/arm.c | 4 +-
arch/arm64/kvm/hyp/nvhe/trace.c | 9 +++-
arch/arm64/kvm/vgic/vgic-its.c | 4 ++
arch/riscv/kvm/vcpu_insn.c | 9 ++--
arch/riscv/kvm/vcpu_pmu.c | 12 +++--
arch/riscv/kvm/vcpu_sbi_sta.c | 2 +-
arch/riscv/kvm/vcpu_sbi_v01.c | 2 +
arch/s390/kvm/dat.c | 1 +
arch/s390/kvm/dat.h | 3 +-
arch/s390/kvm/gaccess.c | 1 +
arch/s390/kvm/gmap.c | 18 ++++---
arch/s390/kvm/gmap.h | 61 ++++++++++++++++++++--
arch/x86/kvm/svm/avic.c | 12 +++--
arch/x86/kvm/x86.c | 2 +-
tools/testing/selftests/kvm/lib/elf.c | 2 +-
.../selftests/kvm/x86/apic_bus_clock_test.c | 4 ++
16 files changed, 115 insertions(+), 31 deletions(-)