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>
This commit is contained in:
parent
19b6a85b78
commit
07d6f555d5
1 changed files with 1 additions and 1 deletions
|
@ -4007,7 +4007,7 @@ static void vmx_vcpu_run(struct kvm_vcpu *vcpu)
|
||||||
#endif
|
#endif
|
||||||
[cr2]"i"(offsetof(struct vcpu_vmx, vcpu.arch.cr2))
|
[cr2]"i"(offsetof(struct vcpu_vmx, vcpu.arch.cr2))
|
||||||
: "cc", "memory"
|
: "cc", "memory"
|
||||||
, R"bx", R"di", R"si"
|
, R"ax", R"bx", R"di", R"si"
|
||||||
#ifdef CONFIG_X86_64
|
#ifdef CONFIG_X86_64
|
||||||
, "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"
|
, "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue