projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19b6a85
)
KVM: VMX: Add AX to list of registers clobbered by guest switch
author
Jan Kiszka
<jan.kiszka@siemens.com>
Tue, 28 Sep 2010 14:37:42 +0000
(16:37 +0200)
committer
Avi Kivity
<avi@redhat.com>
Sun, 24 Oct 2010 08:53:07 +0000
(10:53 +0200)
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>
arch/x86/kvm/vmx.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/vmx.c
b/arch/x86/kvm/vmx.c
index 28c72da93a1b11e2c7b7c34a6f8755f53df753ab..007be8402efb911fab310c078fe26d17801304f3 100644
(file)
--- 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