]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Avoid atomic operation in vmx_vcpu_run
authorAvi Kivity <avi@redhat.com>
Thu, 6 Jan 2011 16:09:12 +0000 (18:09 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 17 Mar 2011 16:08:26 +0000 (13:08 -0300)
commit2094f588f97ea5b0347790d42c45bedf9910515e
treef2d916b387dcf6613a4a3a43d10f96b979eb17f2
parent3a38f2681a97e515e2185e5e03366bd838b7aa76
KVM: VMX: Avoid atomic operation in vmx_vcpu_run

Instead of exchanging the guest and host rcx, have separate storage
for each.  This allows us to avoid using the xchg instruction, which
is is a little slower than normal operations.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c