diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2010-09-28 14:37:42 (GMT) |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 08:53:07 (GMT) |
commit | 07d6f555d536aad1d74bb8b41dae9385007ecc26 (patch) | |
tree | 0d107ade854e2d831756bc114585161234ba8f6b /arch/x86 | |
parent | 19b6a85b78a5d4b466c537bdbf0eaecae5e2c4e2 (diff) | |
download | linux-fsl-qoriq-07d6f555d536aad1d74bb8b41dae9385007ecc26.tar.xz |
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')
-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 28c72da..007be84 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 |