Skip to content

KVM: x86: Convert all runtime WARNs to ONCE

Sean Christopherson kvm lkml 2 versions – Applied

Status from this message: Applied to kvm-x86 misc, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 6 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: x86: Convert WARN_ON(preemptible()) to lockdep assertionarch/x86/kvm/lapic.c+6 -30 replies
2/2KVM: x86: Convert all runtime WARNs to ONCE variantsarch/x86/kvm/hyperv.c arch/x86/kvm/i8254.c arch/x86/kvm/irq.c +12 more+46 -460 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] KVM: x86: Convert all runtime WARNs to ONCE

Convert all bare WARN() and WARN_ON() runtime usage, i.e. WARNs that aren't strictly scoped to module init/exit, or similar, to ONCE() variants for what should be fairly obvious reasons at this point.

v2: Convert the WARN_ON() in kvm_mmu_uninit_tdp_mmu(). [Sashiko]

v1: https://lore.kernel.org/all/[email protected]

Sean Christopherson (2):
KVM: x86: Convert WARN_ON(preemptible()) to lockdep assertion
KVM: x86: Convert all runtime WARNs to ONCE variants

 arch/x86/kvm/hyperv.c          |  2 +-
 arch/x86/kvm/i8254.c           |  2 +-
 arch/x86/kvm/irq.c             |  4 ++--
 arch/x86/kvm/lapic.c           | 17 ++++++++++-------
 arch/x86/kvm/mmu/tdp_mmu.c     |  4 ++--
 arch/x86/kvm/msrs.c            |  2 +-
 arch/x86/kvm/svm/avic.c        |  2 +-
 arch/x86/kvm/svm/nested.c      | 12 ++++++------
 arch/x86/kvm/svm/sev.c         |  2 +-
 arch/x86/kvm/svm/svm.c         | 12 ++++++------
 arch/x86/kvm/vmx/nested.c      | 12 ++++++------
 arch/x86/kvm/vmx/posted_intr.c |  2 +-
 arch/x86/kvm/vmx/vmx.c         |  8 ++++----
 arch/x86/kvm/x86.c             | 18 +++++++++---------
 arch/x86/kvm/x86.h             |  2 +-
 15 files changed, 52 insertions(+), 49 deletions(-)

base-commit: 7e60162b16f9da0d2fa83da5c1723b6853a0ac1d

Signature · 1 line
2.56.0.313.g2479322e68-goog