r15 is used by ASM_VMRUN_CMD, so we need to mark it as clobbered. Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx> --- x86/svm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x86/svm.c b/x86/svm.c index e30630c..d8c8272 100644 --- a/x86/svm.c +++ b/x86/svm.c @@ -235,7 +235,7 @@ int svm_vmrun(void) ASM_VMRUN_CMD : : "a" (virt_to_phys(vmcb)) - : "memory"); + : "memory", "r15"); return (vmcb->control.exit_code); } -- 2.26.2