]> Pileus Git - ~andy/linux/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)
commit40712faeb84dacfcb3925a88231daa08b3624d34
treef2d916b387dcf6613a4a3a43d10f96b979eb17f2
parent1c696d0e1b7c10e1e8b34cb6c797329e3c33f262
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