From: Paolo Bonzini <pbonzini@redhat.com>
To: Maxim Levitsky <mlevitsk@redhat.com>, kvm@vger.kernel.org
Cc: Sean Christopherson <sean.j.christopherson@intel.com>,
Joerg Roedel <joro@8bytes.org>, Ingo Molnar <mingo@redhat.com>,
"maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)"
<x86@kernel.org>, "H. Peter Anvin" <hpa@zytor.com>,
Vitaly Kuznetsov <vkuznets@redhat.com>,
Borislav Petkov <bp@alien8.de>, Jim Mattson <jmattson@google.com>,
Wanpeng Li <wanpengli@tencent.com>,
linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH 1/1] KVM: x86: ignore SIPIs that are received while not in wait-for-sipi state
Date: Thu, 3 Dec 2020 18:36:31 +0100 [thread overview]
Message-ID: <62e9c59f-29a4-d69f-5d02-a5da11cdbd15@redhat.com> (raw)
In-Reply-To: <20201203143319.159394-2-mlevitsk@redhat.com>
On 03/12/20 15:33, Maxim Levitsky wrote:
> In the commit 1c96dcceaeb3
> ("KVM: x86: fix apic_accept_events vs check_nested_events"),
>
> we accidently started latching SIPIs that are received while the cpu is not
> waiting for them.
>
> This causes vCPUs to never enter a halted state.
>
> Fixes: 1c96dcceaeb3 ("KVM: x86: fix apic_accept_events vs check_nested_events")
> Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
> ---
> arch/x86/kvm/lapic.c | 15 ++++++++-------
Indeed, it was done by the xchg before that commit, even if
vcpu->arch.mp_state != KVM_MP_STATE_INIT_RECEIVED.
Paolo
prev parent reply other threads:[~2020-12-03 17:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-03 14:33 [PATCH 0/1] Fix for a recent regression in kvm/queue (guest using 100% cpu time) Maxim Levitsky
2020-12-03 14:33 ` [PATCH 1/1] KVM: x86: ignore SIPIs that are received while not in wait-for-sipi state Maxim Levitsky
2020-12-03 17:36 ` Paolo Bonzini [this message]
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=62e9c59f-29a4-d69f-5d02-a5da11cdbd15@redhat.com \
--to=pbonzini@redhat.com \
--cc=bp@alien8.de \
--cc=hpa@zytor.com \
--cc=jmattson@google.com \
--cc=joro@8bytes.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=mlevitsk@redhat.com \
--cc=sean.j.christopherson@intel.com \
--cc=tglx@linutronix.de \
--cc=vkuznets@redhat.com \
--cc=wanpengli@tencent.com \
--cc=x86@kernel.org \
/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