Skip to content

KVM: x86: Suppress false positives on "lost" IRQs

Sean Christopherson kvm lkml 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 1 replyApplied

Changes in v3 from the cover letter

- Add a helper to weed out the problematic cases.
- WARN in the "else" path so that there's only a single conditional branch in the happy path.
- Exempt Xen. [Sashiko]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: x86: Don't WARN if IRQ disappears because it was cleared from the PICarch/x86/kvm/irq.h arch/x86/kvm/vmx/nested.c arch/x86/kvm/x86.c+22 -20 replies
2/2KVM: x86: Don't WARN if IRQ disappears when Xen emulation is enabled.arch/x86/kvm/irq.h+5 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchAlexander Potapenko
1/2Debugged-by
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] KVM: x86: Suppress false positives on "lost" IRQs

Don't WARN on "lost" IRQs if the VM has an in-kernel PIC or Xen emulation is enabled, as vPIC and Xen emulation have guest-controllable and/or VM-wide IRQs that can legitimately be consumed/deasserted without holding the vCPU's mutex.

v3:
- Add a helper to weed out the problematic cases.
- WARN in the "else" path so that there's only a single conditional branch in the happy path.
- Exempt Xen. [Sashiko]

v2:
- https://lore.kernel.org/all/[email protected]
- Restrict the warning exemption to the in-kernel PIC case.
- Remove the pr_err_ratelimited() logging.
- Preserve the WARN_ON_ONCE() for non-PIC interrupt sources.

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

Sean Christopherson (2):
KVM: x86: Don't WARN if IRQ disappears because it was cleared from the
PIC
KVM: x86: Don't WARN if IRQ disappears when Xen emulation is enabled.

 arch/x86/kvm/irq.h        | 20 ++++++++++++++++++++
 arch/x86/kvm/vmx/nested.c |  4 +++-
 arch/x86/kvm/x86.c        |  4 +++-
 3 files changed, 26 insertions(+), 2 deletions(-)

base-commit: a204badd8432f93b7e862e7dac6db0fe3d65f370

Signature · 1 line
2.55.0.229.g6434b31f56-goog