[GIT PULL] Too many KVM fixes for Linux 7.4-rc6
From: Paolo Bonzini
Date: Fri Dec 04 2026 - 12:57:30 EST
Linus,
here is the next wave of AI found issues (plus some s390 fixes of their own).
The following changes since commit bd1be6e0267d7a52425bd515c53e9a49bd4e2a12:
Merge tag 'kvm-riscv-fixes-7.4-1' of https://github.com/kvm-riscv/linux into HEAD (2026-11-20 17:55:01 +0100)
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 d82c92691a1e001ae75083f7d4eb9350d4a8ec27:
Merge tag 'kvm-s390-master-7.4-3' of https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD (2026-12-03 19:01:47 +0100)
----------------------------------------------------------------
Arm:
- Bound PINTID during ITE table restore, avoiding the possibility that the
guest plants an out-of-range LPI INTID in its own in-memory ITS tables
prior to restore.
- Do not blindly trust the vINTID field coming from KVM, and reject
anything that is out of the boundaries that the hardware ITS is
configured to support.
- Add signal_pending checks to the scan_its_table() loop; device table
entries with num_eventid_bits = 16 (or 65536 EventIDs per device) are
valid but takes a long time to restore.
- Remove quadratic complexity from the algorithm used to prune IRQs sitting
in the AP list has a quadratic complexity, and simplify the locking while
at that.
s390:
- Don't kick vcpus for floating IRQs that are no longer pending
- Fix PSW manipulation for 31-bit nested guests
- Ensure nested guest state is not modified in the vSIE error path,
if no nested guest instruction was run.
- Clear icptcode, icptstatus, ipa and ipb when reusing a shadow SCB.
- Reserve space in the MMU cache early when creating or moving memslots,
so you don't have migration mode turned off under your feet when
KVM_SET_USER_MEMORY_REGION returns -ENOMEM.
Loongarch:
- Flush TLBs *before* dropping mmu_lock
RISC-V:
- Flush TLBs *before* dropping mmu_lock
x86:
- Flush TLB *before* dropping mmu_lock, and flush them entirely
- Flush TLBs if child SPTE is zapped when splitting a huge SPTE
- Pin kvm->mm prior to borrowing mm when setting event channel
- Disable hypervisor (VMX Preemption) timer if TSC deadline wraps
- Reset local APIC timer metadata on RESET, INIT, and KVM_SET_LAPIC
- Ensure guest FPU is resident in hardware when updating actual XFD MSR
- Ensure pCPU is valid before sending IPI to deliver posted IRQ
Generic:
- Invalidate all GFN=>PFN caches when VM and/or its process is dying
----------------------------------------------------------------
Christian Borntraeger (1):
KVM: s390: Don't kick vcpus for floating IRQs that are no longer pending
Gautam Gala (2):
KVM: s390: reserve mmu cache before stopping migration mode
KVM: s390: vsie: Do not overwrite guest 3 state on early validity icpt
Kyle Zeng (3):
RISC-V: KVM: Flush TLBs *before* dropping mmu_lock, e.g. when yielding
LoongArch: KVM: Flush TLBs *before* dropping mmu_lock
KVM: x86/mmu: Flush all TLB entries, not a precise range, when yielding
Marc Zyngier (2):
irqchip/gic-v4: Contain VMAPTI vINTID to the expected boundaries
KVM: arm64: vgic: Linearise AP list pruning process
Paolo Bonzini (2):
Merge kvm-7.4-rc6/kvm-arm64-urgent-fixes.bundle into kvm-20261202
Merge tag 'kvm-s390-master-7.4-3' of https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD
Raghavendra Rao Ananta (2):
KVM: arm64: vgic-its: Bound PINTID during ITE table restore
KVM: arm64: vgic-its: Add signal checks in scan_its_table()
Sean Christopherson (14):
KVM: x86/mmu: Flush TLBs if child SPTE is zapped when splitting a huge SPTE
KVM: x86/mmu: Propagate the return from kvm_zap_all_rmap_sptes() out of __rmap_add()
KVM: x86: Disable hypervisor (VMX Preemption) timer if TSC deadline wraps
KVM: x86: Reset local APIC timer metadata on RESET, INIT, and KVM_SET_LAPIC
KVM: x86/mmu: Flush TLBs in kvm_unmap_gfn_range() if the unmap may block/yield
KVM: x86/xen: Pin kvm->mm prior to borrowing mm when setting event channel
KVM: Fold kvm_flush_shadow_all() into kvm_mmu_notifier_release()
KVM: WARN if there are in-flight memslot updates when a VM's process exits
KVM: Set mn_active_invalidate_count when the VM's mm is released
KVM: Invalidate all GFN=>PFN caches when VM and/or its process is dying
x86/fpu: Bail early from guest XFD update if XFD isn't supported
x86/fpu: Clear XSTATE_BV[i] in guest XSAVE state if guest FPU isn't in-use
x86/fpu: Ensure guest FPU is resident in hardware when updating actual XFD MSR
KVM: VMX: Ensure pCPU is valid before sending IPI to deliver posted IRQ
Yvan Janssens (1):
KVM: s390: vsie: Rewind the PSW of ESA mode guests in the right format
arch/arm64/kvm/vgic/vgic-its.c | 6 +-
arch/arm64/kvm/vgic/vgic.c | 175 +++++++++++++++++++--------------------
arch/loongarch/kvm/mmu.c | 12 ++-
arch/riscv/kvm/gstage.c | 9 +-
arch/riscv/kvm/mmu.c | 2 +-
arch/s390/kvm/gmap/kvm_mmu.c | 15 ++--
arch/s390/kvm/s390/interrupt.c | 14 ++++
arch/s390/kvm/s390/vsie.c | 42 ++++++++--
arch/x86/kernel/fpu/core.c | 37 ++++++---
arch/x86/kvm/lapic.c | 67 ++++++++++-----
arch/x86/kvm/mmu/mmu.c | 49 ++++++++---
arch/x86/kvm/vmx/common.h | 5 +-
arch/x86/kvm/vmx/tdx.c | 4 +-
arch/x86/kvm/x86.c | 2 +-
arch/x86/kvm/xen.c | 7 +-
drivers/irqchip/irq-gic-v3-its.c | 3 +-
virt/kvm/kvm_main.c | 61 +++++++++-----
virt/kvm/kvm_mm.h | 2 +
virt/kvm/pfncache.c | 12 +++
19 files changed, 340 insertions(+), 184 deletions(-)