From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH] VMX: use non-atomic bitops to manage MSR state Date: Mon, 20 Jun 2016 13:25:34 +0100 Message-ID: <229f3322-727a-c09e-666c-f9bf86097c38@citrix.com> References: <5767F02202000078000F6A32@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7528211036105260780==" Return-path: Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bEyGo-0003nB-Ly for xen-devel@lists.xenproject.org; Mon, 20 Jun 2016 12:25:38 +0000 In-Reply-To: <5767F02202000078000F6A32@prv-mh.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Jan Beulich , xen-devel Cc: Kevin Tian , Jun Nakajima List-Id: xen-devel@lists.xenproject.org --===============7528211036105260780== Content-Type: multipart/alternative; boundary="------------D66E727CC238F537719A7B39" --------------D66E727CC238F537719A7B39 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On 20/06/16 12:31, Jan Beulich wrote: > All host_msr_state accesses are solely on the owning CPU, and all > guest_msr_state ones solely when the vCPU is current or being switched > to. This, btw, is also in line with the use of find_first_set_bit() > (which would be bogus if ->flags could get updated behind its back). > > Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --------------D66E727CC238F537719A7B39 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit
On 20/06/16 12:31, Jan Beulich wrote:
All host_msr_state accesses are solely on the owning CPU, and all
guest_msr_state ones solely when the vCPU is current or being switched
to. This, btw, is also in line with the use of find_first_set_bit()
(which would be bogus if ->flags could get updated behind its back).

Signed-off-by: Jan Beulich <jbeulich@suse.com>

Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
--------------D66E727CC238F537719A7B39-- --===============7528211036105260780== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --===============7528211036105260780==--