diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-07-08 06:35:13 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-07-08 07:48:36 -0400 |
commit | 7b87cad0a5010e00bc59812a8aeba79a862af8be (patch) | |
tree | 061a16e667072329bc7860b7feee312188d4eaac | |
parent | 0d622fcb2ba0ac8e9c7f7a282badac694a3592c5 (diff) | |
download | kvm-unit-tests-7b87cad0a5010e00bc59812a8aeba79a862af8be.tar.gz |
svm: fix clobbers for svm_vmrun
r15 is used by ASM_VMRUN_CMD, so we need to mark it as clobbered.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | x86/svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -235,7 +235,7 @@ int svm_vmrun(void) ASM_VMRUN_CMD : : "a" (virt_to_phys(vmcb)) - : "memory"); + : "memory", "r15"); return (vmcb->control.exit_code); } |