From: Sean Christopherson <seanjc@google.com>
To: Sean Christopherson <seanjc@google.com>,
Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
syzbot+dd769db18693736eee89@syzkaller.appspotmail.com,
Sashiko Bot <sashiko-bot@kernel.org>
Subject: [PATCH v3 0/2] KVM: x86: Suppress false positives on "lost" IRQs
Date: Fri, 24 Jul 2026 10:34:23 -0700 [thread overview]
Message-ID: <20260724173425.278753-1-seanjc@google.com> (raw)
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/86078441-92eb-4461-b823-7d3539ac5859@mail.kernel.org
- 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/345e9d6c-d7d9-4bab-adb3-d6a7bd27599f@mail.kernel.org
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
--
2.55.0.229.g6434b31f56-goog
next reply other threads:[~2026-07-24 17:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-24 17:34 Sean Christopherson [this message]
2026-07-24 17:34 ` [PATCH v3 1/2] KVM: x86: Don't WARN if IRQ disappears because it was cleared from the PIC Sean Christopherson
2026-07-24 17:34 ` [PATCH v3 2/2] KVM: x86: Don't WARN if IRQ disappears when Xen emulation is enabled Sean Christopherson
2026-07-31 20:09 ` [PATCH v3 0/2] KVM: x86: Suppress false positives on "lost" IRQs Sean Christopherson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260724173425.278753-1-seanjc@google.com \
--to=seanjc@google.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=sashiko-bot@kernel.org \
--cc=syzbot+dd769db18693736eee89@syzkaller.appspotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®