From: Paolo Bonzini <pbonzini@redhat.com>
To: kvm@vger.kernel.org
Subject: [PATCH kvm-unit-tests] svm: fix clobbers for svm_vmrun
Date: Wed, 8 Jul 2020 06:35:15 -0400 [thread overview]
Message-ID: <20200708103515.19477-1-pbonzini@redhat.com> (raw)
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
reply other threads:[~2020-07-08 10:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200708103515.19477-1-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).