diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2010-09-28 16:37:42 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 10:53:07 +0200 |
commit | 07d6f555d536aad1d74bb8b41dae9385007ecc26 (patch) | |
tree | 0d107ade854e2d831756bc114585161234ba8f6b /arch/x86/kvm | |
parent | 19b6a85b78a5d4b466c537bdbf0eaecae5e2c4e2 (diff) | |
download | talos-op-linux-07d6f555d536aad1d74bb8b41dae9385007ecc26.tar.gz talos-op-linux-07d6f555d536aad1d74bb8b41dae9385007ecc26.zip |
KVM: VMX: Add AX to list of registers clobbered by guest switch
By chance this caused no harm so far. We overwrite AX during switch
to/from guest context, so we must declare this.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/vmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 28c72da93a1b..007be8402efb 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -4007,7 +4007,7 @@ static void vmx_vcpu_run(struct kvm_vcpu *vcpu) #endif [cr2]"i"(offsetof(struct vcpu_vmx, vcpu.arch.cr2)) : "cc", "memory" - , R"bx", R"di", R"si" + , R"ax", R"bx", R"di", R"si" #ifdef CONFIG_X86_64 , "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15" #endif |