Skip to contentSkip to conversation

svm: fix clobbers for svm_vmrun

PATCH New Paolo Bonzini 1 participant 1 message Jul 8, 2020 KVM

lore
Share & tools
lore

Paolo Bonzini

author maintainer
#0 lore raw

PATCH 1/1 svm: fix clobbers for svm_vmrun

r15 is used by ASM_VMRUN_CMD, so we need to mark it as clobbered.

---
 x86/svm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
x86/svm.c +1 -1
index e30630c..d8c8272 100644
@@ -235,7 +235,7 @@ int svm_vmrun(void)
 		ASM_VMRUN_CMD
 		:
 		: "a" (virt_to_phys(vmcb))
-		: "memory");
+		: "memory", "r15");
 
 	return (vmcb->control.exit_code);
 }
Signature · 1 line
2.26.2