[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <173039505425.1508775.86255062373291663.b4-ty@google.com>
Date: Thu, 31 Oct 2024 12:51:44 -0700
From: Sean Christopherson <seanjc@...gle.com>
To: Sean Christopherson <seanjc@...gle.com>, Paolo Bonzini <pbonzini@...hat.com>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] KVM: x86: Ensure vcpu->mode is loaded from memory in kvm_vcpu_exit_request()
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
--
https://github.com/kvm-x86/linux/tree/next
Powered by blists - more mailing lists