kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH kvm-unit-tests] svm: fix clobbers for svm_vmrun
@ 2020-07-08 10:35 Paolo Bonzini
  0 siblings, 0 replies; only message in thread
From: Paolo Bonzini @ 2020-07-08 10:35 UTC (permalink / raw)
  To: kvm

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

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-08 10:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-08 10:35 [PATCH kvm-unit-tests] svm: fix clobbers for svm_vmrun Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).