aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-01-06 11:09:11 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2011-03-17 12:08:25 -0400
commit1c696d0e1b7c10e1e8b34cb6c797329e3c33f262 (patch)
treecba560950eb5404c6083d570e4c4b951003237fc /arch/x86/kvm/vmx.c
parent00c25bce02fde63eaa1227532cff9ac7b71de79e (diff)
KVM: VMX: Simplify saving guest rcx in vmx_vcpu_run
Change push top-of-stack pop guest-rcx pop dummy to pop guest-rcx which is the same thing, only simpler. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index e2c4e324f6fa..da468c26639d 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -4066,7 +4066,7 @@ static void vmx_vcpu_run(struct kvm_vcpu *vcpu)
4066 "xchg %0, (%%"R"sp) \n\t" 4066 "xchg %0, (%%"R"sp) \n\t"
4067 "mov %%"R"ax, %c[rax](%0) \n\t" 4067 "mov %%"R"ax, %c[rax](%0) \n\t"
4068 "mov %%"R"bx, %c[rbx](%0) \n\t" 4068 "mov %%"R"bx, %c[rbx](%0) \n\t"
4069 "push"Q" (%%"R"sp); pop"Q" %c[rcx](%0) \n\t" 4069 "pop"Q" %c[rcx](%0) \n\t"
4070 "mov %%"R"dx, %c[rdx](%0) \n\t" 4070 "mov %%"R"dx, %c[rdx](%0) \n\t"
4071 "mov %%"R"si, %c[rsi](%0) \n\t" 4071 "mov %%"R"si, %c[rsi](%0) \n\t"
4072 "mov %%"R"di, %c[rdi](%0) \n\t" 4072 "mov %%"R"di, %c[rdi](%0) \n\t"
@@ -4084,7 +4084,7 @@ static void vmx_vcpu_run(struct kvm_vcpu *vcpu)
4084 "mov %%cr2, %%"R"ax \n\t" 4084 "mov %%cr2, %%"R"ax \n\t"
4085 "mov %%"R"ax, %c[cr2](%0) \n\t" 4085 "mov %%"R"ax, %c[cr2](%0) \n\t"
4086 4086
4087 "pop %%"R"bp; pop %%"R"bp; pop %%"R"dx \n\t" 4087 "pop %%"R"bp; pop %%"R"dx \n\t"
4088 "setbe %c[fail](%0) \n\t" 4088 "setbe %c[fail](%0) \n\t"
4089 : : "c"(vmx), "d"((unsigned long)HOST_RSP), 4089 : : "c"(vmx), "d"((unsigned long)HOST_RSP),
4090 [launched]"i"(offsetof(struct vcpu_vmx, launched)), 4090 [launched]"i"(offsetof(struct vcpu_vmx, launched)),