stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Haozhong Zhang <haozhong.zhang@intel.com>
Cc: stable@vger.kernel.org, "Paolo Bonzini" <pbonzini@redhat.com>,
	"Radim Krčmář" <rkrcmar@redhat.com>,
	"Ramamurthy, Venkatesh" <venkatesh.ramamurthy@intel.com>,
	"Dan Williams" <dan.j.williams@intel.com>
Subject: Re: [PATCH-for-4.13 2/2] KVM: VMX: remove WARN_ON_ONCE in kvm_vcpu_trigger_posted_interrupt
Date: Tue, 3 Oct 2017 10:54:15 +0200	[thread overview]
Message-ID: <20171003085415.GE15659@kroah.com> (raw)
In-Reply-To: <20170927032240.21406-3-haozhong.zhang@intel.com>

On Wed, Sep 27, 2017 at 11:22:40AM +0800, Haozhong Zhang wrote:
> commit 5753743fa5108b8f98bd61e40dc63f641b26c768 upstream.
> 
> WARN_ON_ONCE(pi_test_sn(&vmx->pi_desc)) in kvm_vcpu_trigger_posted_interrupt()
> intends to detect the violation of invariant that VT-d PI notification
> event is not suppressed when vcpu is in the guest mode. Because the
> two checks for the target vcpu mode and the target suppress field
> cannot be performed atomically, the target vcpu mode may change in
> between. If that does happen, WARN_ON_ONCE() here may raise false
> alarms.
> 
> As the previous patch fixed the real invariant breaker, remove this
> WARN_ON_ONCE() to avoid false alarms, and document the allowed cases
> instead.
> 
> Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
> Reported-by: "Ramamurthy, Venkatesh" <venkatesh.ramamurthy@intel.com>
> Reported-by: Dan Williams <dan.j.williams@intel.com>
> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
> Fixes: 28b835d60fcc ("KVM: Update Posted-Interrupts Descriptor when vCPU is preempted")

Also applied to 4.4 and 4.9-stable trees, thanks.

greg k-h

  reply	other threads:[~2017-10-03  8:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-27  3:22 [PATCH-for-4.13 0/2] VT-d PI: fix race condition Haozhong Zhang
2017-09-27  3:22 ` [PATCH-for-4.13 1/2] KVM: VMX: do not change SN bit in vmx_update_pi_irte() Haozhong Zhang
2017-10-03  8:53   ` Greg KH
2017-09-27  3:22 ` [PATCH-for-4.13 2/2] KVM: VMX: remove WARN_ON_ONCE in kvm_vcpu_trigger_posted_interrupt Haozhong Zhang
2017-10-03  8:54   ` Greg KH [this message]
2017-09-27  8:16 ` [PATCH-for-4.13 0/2] VT-d PI: fix race condition Paolo Bonzini
2017-09-27  8:23   ` Haozhong Zhang

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=20171003085415.GE15659@kroah.com \
    --to=greg@kroah.com \
    --cc=dan.j.williams@intel.com \
    --cc=haozhong.zhang@intel.com \
    --cc=pbonzini@redhat.com \
    --cc=rkrcmar@redhat.com \
    --cc=stable@vger.kernel.org \
    --cc=venkatesh.ramamurthy@intel.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;
as well as URLs for NNTP newsgroup(s).