From: Chenyi Qiang <chenyi.qiang@intel.com>
To: kvm@vger.kernel.org
Cc: Paolo Bonzini <pbonzini@redhat.com>
Subject: [kvm-unit-tests PATCH 1/2] x86: smap: Use correct reg to pass a parameter
Date: Fri, 25 Oct 2019 17:03:28 +0800 [thread overview]
Message-ID: <20191025090329.11679-1-chenyi.qiang@intel.com> (raw)
The first parameter is passed using rdi in x86_64.
Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com>
---
x86/smap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/x86/smap.c b/x86/smap.c
index c0376e3..a8f48b8 100644
--- a/x86/smap.c
+++ b/x86/smap.c
@@ -29,7 +29,7 @@ asm ("pf_tss:\n"
// no task on x86_64, save/restore caller-save regs
"push %rax; push %rcx; push %rdx; push %rsi; push %rdi\n"
"push %r8; push %r9; push %r10; push %r11\n"
- "mov 9*8(%rsp),%rsi\n"
+ "mov 9*8(%rsp),%rdi\n"
#endif
"call do_pf_tss\n"
#ifdef __x86_64__
--
2.17.1
next reply other threads:[~2019-10-25 9:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-25 9:03 Chenyi Qiang [this message]
2019-10-25 9:03 ` [kvm-unit-tests PATCH 2/2] x86: pku: fix parameter passing Chenyi Qiang
2019-11-11 13:45 ` Paolo Bonzini
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=20191025090329.11679-1-chenyi.qiang@intel.com \
--to=chenyi.qiang@intel.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
/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