From: Sean Christopherson <seanjc@google.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] KVM: x86: Ensure vcpu->mode is loaded from memory in kvm_vcpu_exit_request()
Date: Fri, 1 Nov 2024 12:26:39 -0700 [thread overview]
Message-ID: <ZyUrbykshu2YcrfR@google.com> (raw)
In-Reply-To: <173039505425.1508775.86255062373291663.b4-ty@google.com>
On Thu, Oct 31, 2024, Sean Christopherson wrote:
> On Wed, 28 Aug 2024 16:20:13 -0700, Sean Christopherson wrote:
> > Wrap kvm_vcpu_exit_request()'s load of vcpu->mode with READ_ONCE() to
> > ensure the variable is re-loaded from memory, as there is no guarantee the
> > caller provides the necessary annotations to ensure KVM sees a fresh value,
> > e.g. the VM-Exit fastpath could theoretically reuse the pre-VM-Enter value.
>
> Applied to kvm-x86 misc, thanks!
>
> [1/1] KVM: x86: Ensure vcpu->mode is loaded from memory in kvm_vcpu_exit_request()
> https://github.com/kvm-x86/linux/commit/ba50bb4a9fb5
FYI, I rebased misc to v6.12-rc5, as patches in another series had already been
taken through the tip tree. New hash:
[1/1] KVM: x86: Ensure vcpu->mode is loaded from memory in kvm_vcpu_exit_request()
https://github.com/kvm-x86/linux/commit/3ffe874ea3eb
prev parent reply other threads:[~2024-11-01 19:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-28 23:20 [PATCH] KVM: x86: Ensure vcpu->mode is loaded from memory in kvm_vcpu_exit_request() Sean Christopherson
2024-10-31 19:51 ` Sean Christopherson
2024-11-01 19:26 ` Sean Christopherson [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=ZyUrbykshu2YcrfR@google.com \
--to=seanjc@google.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.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