From: Andrew Cooper Date: Thu, 28 Sep 2017 10:04:57 +0000 (+0100) Subject: build: Opencode vmfunc as bytes X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ddccba2cfaa285ebbc3b9db218951f276ffe277c;p=people%2Fandrewcoop%2Fxen-test-framework.git build: Opencode vmfunc as bytes 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 Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich --- 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));