Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [PATCH 00/17] Fixes for various (mostly x86) KVM vulnerabilities
@ 2026-12-04 17:59 Paolo Bonzini
  2026-12-04 17:59 ` [PATCH 01/17] KVM: x86/mmu: Flush TLBs if child SPTE is zapped when splitting a huge SPTE Paolo Bonzini
                   ` (16 more replies)
  0 siblings, 17 replies; 22+ messages in thread
From: Paolo Bonzini @ 2026-12-04 17:59 UTC (permalink / raw)
  To: linux-kernel, kvm

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

Paolo

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

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

 arch/loongarch/kvm/mmu.c   | 12 +++----
 arch/riscv/kvm/gstage.c    |  9 ++++-
 arch/riscv/kvm/mmu.c       |  2 +-
 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 +++-
 virt/kvm/kvm_main.c        | 61 +++++++++++++++++++++-------------
 virt/kvm/kvm_mm.h          |  2 ++
 virt/kvm/pfncache.c        | 12 +++++++
 13 files changed, 190 insertions(+), 79 deletions(-)

-- 
2.56.1


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2026-12-04 20:27 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 17:59 [PATCH 00/17] Fixes for various (mostly x86) KVM vulnerabilities Paolo Bonzini
2026-12-04 17:59 ` [PATCH 01/17] KVM: x86/mmu: Flush TLBs if child SPTE is zapped when splitting a huge SPTE Paolo Bonzini
2026-12-04 17:59 ` [PATCH 02/17] KVM: x86/mmu: Propagate the return from kvm_zap_all_rmap_sptes() out of __rmap_add() Paolo Bonzini
2026-12-04 17:59 ` [PATCH 03/17] KVM: x86: Disable hypervisor (VMX Preemption) timer if TSC deadline wraps Paolo Bonzini
2026-12-04 17:59 ` [PATCH 04/17] KVM: x86: Reset local APIC timer metadata on RESET, INIT, and KVM_SET_LAPIC Paolo Bonzini
2026-12-04 17:59 ` [PATCH 05/17] RISC-V: KVM: Flush TLBs *before* dropping mmu_lock, e.g. when yielding Paolo Bonzini
2026-12-04 19:07   ` sashiko-bot
2026-12-04 17:59 ` [PATCH 06/17] LoongArch: KVM: Flush TLBs *before* dropping mmu_lock Paolo Bonzini
2026-12-04 17:59 ` [PATCH 07/17] KVM: x86/mmu: Flush all TLB entries, not a precise range, when yielding Paolo Bonzini
2026-12-04 17:59 ` [PATCH 08/17] KVM: x86/mmu: Flush TLBs in kvm_unmap_gfn_range() if the unmap may block/yield Paolo Bonzini
2026-12-04 17:59 ` [PATCH 09/17] KVM: x86/xen: Pin kvm->mm prior to borrowing mm when setting event channel Paolo Bonzini
2026-12-04 17:59 ` [PATCH 10/17] KVM: Fold kvm_flush_shadow_all() into kvm_mmu_notifier_release() Paolo Bonzini
2026-12-04 17:59 ` [PATCH 11/17] KVM: WARN if there are in-flight memslot updates when a VM's process exits Paolo Bonzini
2026-12-04 17:59 ` [PATCH 12/17] KVM: Set mn_active_invalidate_count when the VM's mm is released Paolo Bonzini
2026-12-04 17:59 ` [PATCH 13/17] KVM: Invalidate all GFN=>PFN caches when VM and/or its process is dying Paolo Bonzini
2026-12-04 20:01   ` sashiko-bot
2026-12-04 17:59 ` [PATCH 14/17] x86/fpu: Bail early from guest XFD update if XFD isn't supported Paolo Bonzini
2026-12-04 17:59 ` [PATCH 15/17] x86/fpu: Clear XSTATE_BV[i] in guest XSAVE state if guest FPU isn't in-use Paolo Bonzini
2026-12-04 17:59 ` [PATCH 16/17] x86/fpu: Ensure guest FPU is resident in hardware when updating actual XFD MSR Paolo Bonzini
2026-12-04 20:11   ` sashiko-bot
2026-12-04 17:59 ` [PATCH 17/17] KVM: VMX: Ensure pCPU is valid before sending IPI to deliver posted IRQ Paolo Bonzini
2026-12-04 20:27   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox