From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Xen Devel <xen-devel@lists.xen.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Glenn Enright <glenn@rimuhosting.com>
Subject: [PATCH XTF 3/4] build: Opencode vmfunc as bytes
Date: Thu, 28 Sep 2017 11:59:31 +0100 [thread overview]
Message-ID: <1506596372-24393-3-git-send-email-andrew.cooper3@citrix.com> (raw)
In-Reply-To: <1506596372-24393-1-git-send-email-andrew.cooper3@citrix.com>
Binutils 2.20 of CentOS 6 vintage doesn't understand the mnemonic. The
instruction doesn't encode any operands, so we don't lose any flexibility.
Reported-by: Glenn Enright <glenn@rimuhosting.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
tests/xsa-203/main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/xsa-203/main.c b/tests/xsa-203/main.c
index 01b5bca..e786577 100644
--- a/tests/xsa-203/main.c
+++ b/tests/xsa-203/main.c
@@ -22,7 +22,9 @@ bool test_needs_fep = true;
void test_main(void)
{
asm volatile (_ASM_XEN_FEP
- "1: vmfunc; 2:"
+ "1:"
+ ".byte 0x0f, 0x01, 0xd4;" /* VMFUNC */
+ "2:"
_ASM_EXTABLE(1b, 2b) /* Ignore #UD on older versions. */
:: "a" (0));
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-09-28 10:59 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-28 1:43 Building xtf on older distros Glenn Enright
2017-09-28 8:45 ` Wei Liu
2017-09-28 8:51 ` Andrew Cooper
2017-09-28 8:53 ` Wei Liu
2017-09-28 10:59 ` [PATCH XTF 1/4] build: Support BUILD_BUG_ON() with compilers lacking _Static_assert() Andrew Cooper
2017-09-28 10:59 ` [PATCH XTF 2/4] build: Drop unnecessary register clobbers Andrew Cooper
2017-09-28 12:33 ` Jan Beulich
2017-09-28 10:59 ` Andrew Cooper [this message]
2017-09-28 12:34 ` [PATCH XTF 3/4] build: Opencode vmfunc as bytes Jan Beulich
2017-09-28 10:59 ` [PATCH XTF 4/4] build: Avoid using initialisers for anonymous unions Andrew Cooper
2017-09-28 12:37 ` Jan Beulich
2017-09-28 16:56 ` Andrew Cooper
2017-09-28 17:10 ` [PATCH XTF v2 " Andrew Cooper
2017-10-01 21:04 ` Glenn Enright
2017-09-28 12:32 ` [PATCH XTF 1/4] build: Support BUILD_BUG_ON() with compilers lacking _Static_assert() Jan Beulich
2017-09-28 12:34 ` Andrew Cooper
2017-09-28 12:50 ` Jan Beulich
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=1506596372-24393-3-git-send-email-andrew.cooper3@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=glenn@rimuhosting.com \
--cc=xen-devel@lists.xen.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).