From: sashiko-bot@kernel.org
To: "Maxim Levitsky" <mlevitsk@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH v3 1/5] KVM: nVMX: don't check PIR.ON when processing nested posted interrupts
Date: Mon, 23 Nov 2026 18:02:46 +0000 [thread overview]
Message-ID: <sashiko-outbox-229790@kernel.org> (raw)
In-Reply-To: <20261123175512.80438-2-mlevitsk@redhat.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] KVM: nVMX: missing Fixes: trailers for nested posted-interrupt
PID.ON checks
--
commit b99242cc2d5d177888bd387559bf392b46fc1d67
Author: Maxim Levitsky <mlevitsk@redhat.com>
> KVM: nVMX: don't check PIR.ON when processing nested posted interrupts
>
> Despite the suggestion to test and set the PIR.ON and avoid sending
> a posted interrupt if it is already set, there is no requirement
> for this bit to be set for posted interrupt processing to happen
> when the target CPU receives the posted notification vector.
>
> See section 30.6 POSTED-INTERRUPT PROCESSING:
>
> "The processor clears the outstanding-notification bit in
> the posted-interrupt descriptor. This is done atomically so as to leave
> the remainder of the descriptor unmodified
> (e.g., with a locked AND operation)."
>
> Apparently Windows' implementation of APICv does exactly this:
> it sets bits in PIR, without bothering to also set the PIR.ON.
>
> Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
[Severity: Low]
This fixes nested posted-interrupt processing and wakeup checks when L1
triggers the notification vector without setting PID.ON. Should this
include:
Fixes: 705699a13994 ("KVM: nVMX: Enable nested posted interrupt processing")
Fixes: 27c4fa42b11a ("KVM: nVMX: Check for pending posted interrupts when looking for nested events")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261123175512.80438-1-mlevitsk@redhat.com?part=1
next prev parent reply other threads:[~2026-11-23 18:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 17:55 [PATCH v3 0/5] KVM: nVMX: fix nested APICv emulation for windows guests Maxim Levitsky
2026-11-23 17:55 ` [PATCH v3 1/5] KVM: nVMX: don't check PIR.ON when processing nested posted interrupts Maxim Levitsky
2026-11-23 18:02 ` sashiko-bot [this message]
2026-11-23 17:55 ` [PATCH v3 2/5] KVM: x86: split vcpu->arch.hflags into nested_guest_mode and smm_mode Maxim Levitsky
2026-11-23 18:03 ` sashiko-bot
2026-11-23 17:55 ` [PATCH v3 3/5] KVM: x86: convert nested_guest_state into an atomic variable Maxim Levitsky
2026-11-23 17:55 ` [PATCH v3 4/5] KVM: x86: nVMX: move nested APICv state to nested_guest_state Maxim Levitsky
2026-11-23 17:55 ` [PATCH v3 5/5] KVM: x86: nVMX: fix races in delivery of nested posted interrupts Maxim Levitsky
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=sashiko-outbox-229790@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=mlevitsk@redhat.com \
--cc=sashiko-reviews@lists.linux.dev \
/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