Kernel KVM virtualization development
 help / color / mirror / Atom feed
* [PATCH 6.1.y 00/24] Fixes for various (mostly x86) KVM vulnerabilities
@ 2026-12-04 18:03 Paolo Bonzini
  2026-12-04 18:04 ` [PATCH 6.1.y 01/24] ptrace: Convert ptrace_attach() to use lock guards Paolo Bonzini
                   ` (24 more replies)
  0 siblings, 25 replies; 29+ messages in thread
From: Paolo Bonzini @ 2026-12-04 18:03 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

Hou Wenlong (3):
  KVM: x86/mmu: Move round_gfn_for_level() helper into mmu_internal.h
  KVM: x86/mmu: Fix wrong gfn range of tlb flushing in
    kvm_set_pte_rmapp()
  KVM: x86/mmu: Fix wrong start gfn of tlb flushing with range

Jun Miao (1):
  KVM: Fix comments that refer to the non-existent
    install_new_memslots()

Kyle Zeng (1):
  KVM: x86/mmu: Flush all TLB entries, not a precise range, when
    yielding

Peter Zijlstra (1):
  ptrace: Convert ptrace_attach() to use lock guards

Sean Christopherson (18):
  KVM: x86: Grab lapic_timer in a local variable to cleanup periodic
    code
  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: VMX: Retry APIC-access page reload if invalidation is in-progress
  KVM: x86: Use standard mmu_notifier invalidate hooks for APIC access
    page
  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 dangling MMU invalidations at VM destruction
  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

 Documentation/virt/kvm/locking.rst |   2 +-
 arch/x86/kernel/fpu/core.c         |  37 ++++---
 arch/x86/kvm/lapic.c               |  79 ++++++++++-----
 arch/x86/kvm/mmu/mmu.c             |  75 ++++++++++----
 arch/x86/kvm/mmu/mmu_internal.h    |  14 +++
 arch/x86/kvm/mmu/paging_tmpl.h     |   5 +-
 arch/x86/kvm/mmu/tdp_iter.c        |  11 +--
 arch/x86/kvm/vmx/vmx.c             |  53 ++++++++--
 arch/x86/kvm/x86.c                 |  16 +--
 arch/x86/kvm/xen.c                 |   7 +-
 include/linux/kvm_host.h           |   7 +-
 include/linux/sched/task.h         |   2 +
 include/linux/spinlock.h           |  26 +++++
 kernel/ptrace.c                    | 154 ++++++++++++++---------------
 virt/kvm/kvm_main.c                |  78 +++++++++------
 virt/kvm/kvm_mm.h                  |   2 +
 virt/kvm/pfncache.c                |  12 +++
 17 files changed, 374 insertions(+), 206 deletions(-)

-- 
2.56.1


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

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

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 18:03 [PATCH 6.1.y 00/24] Fixes for various (mostly x86) KVM vulnerabilities Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 01/24] ptrace: Convert ptrace_attach() to use lock guards Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 02/24] KVM: x86: Grab lapic_timer in a local variable to cleanup periodic code Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 03/24] KVM: x86/mmu: Move round_gfn_for_level() helper into mmu_internal.h Paolo Bonzini
2026-12-04 18:22   ` sashiko-bot
2026-12-04 18:04 ` [PATCH 6.1.y 04/24] KVM: x86/mmu: Fix wrong gfn range of tlb flushing in kvm_set_pte_rmapp() Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 05/24] KVM: x86/mmu: Fix wrong start gfn of tlb flushing with range Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 06/24] KVM: x86/mmu: Flush TLBs if child SPTE is zapped when splitting a huge SPTE Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 07/24] KVM: x86/mmu: Propagate the return from kvm_zap_all_rmap_sptes() out of __rmap_add() Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 08/24] KVM: x86: Disable hypervisor (VMX Preemption) timer if TSC deadline wraps Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 09/24] KVM: x86: Reset local APIC timer metadata on RESET, INIT, and KVM_SET_LAPIC Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 10/24] KVM: x86/mmu: Flush all TLB entries, not a precise range, when yielding Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 11/24] KVM: VMX: Retry APIC-access page reload if invalidation is in-progress Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 12/24] KVM: x86: Use standard mmu_notifier invalidate hooks for APIC access page Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 13/24] KVM: x86/mmu: Flush TLBs in kvm_unmap_gfn_range() if the unmap may block/yield Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 14/24] KVM: x86/xen: Pin kvm->mm prior to borrowing mm when setting event channel Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 15/24] KVM: Fold kvm_flush_shadow_all() into kvm_mmu_notifier_release() Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 16/24] KVM: WARN if there are dangling MMU invalidations at VM destruction Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 17/24] KVM: WARN if there are in-flight memslot updates when a VM's process exits Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 18/24] KVM: Fix comments that refer to the non-existent install_new_memslots() Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 19/24] KVM: Set mn_active_invalidate_count when the VM's mm is released Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 20/24] KVM: Invalidate all GFN=>PFN caches when VM and/or its process is dying Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 21/24] x86/fpu: Bail early from guest XFD update if XFD isn't supported Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 22/24] x86/fpu: Clear XSTATE_BV[i] in guest XSAVE state if guest FPU isn't in-use Paolo Bonzini
2026-12-04 18:04 ` [PATCH 6.1.y 23/24] x86/fpu: Ensure guest FPU is resident in hardware when updating actual XFD MSR Paolo Bonzini
2026-12-04 19:15   ` sashiko-bot
2026-12-04 18:04 ` [PATCH 6.1.y 24/24] KVM: VMX: Ensure pCPU is valid before sending IPI to deliver posted IRQ Paolo Bonzini
2026-12-04 19:18   ` sashiko-bot
2026-12-04 20:29 ` [PATCH 6.1.y 00/24] Fixes for various (mostly x86) KVM vulnerabilities Paolo Bonzini

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