]> xenbits.xensource.com Git - xen.git/commit
VMX: use non-atomic bitops to manage MSR state
authorJan Beulich <jbeulich@suse.com>
Thu, 23 Jun 2016 15:46:55 +0000 (17:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 23 Jun 2016 15:46:55 +0000 (17:46 +0200)
commit3528b5b4c3b1695ecc7af5622b32042aafbdf6f4
treeee1a44a8cb7eb7db4198a7638371e8899ed6726e
parent6a35f1e1fb03bbb957828f9f2cf8bfc47df95ee6
VMX: use non-atomic bitops to manage MSR state

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>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmx.c