]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commitdiff
build: Opencode vmfunc as bytes
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 28 Sep 2017 10:04:57 +0000 (11:04 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 Sep 2017 14:34:49 +0000 (15:34 +0100)
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>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
tests/xsa-203/main.c

index 01b5bcaefb7efb9b441bfef483857a98338cf0fb..e786577a1d4b165a44ee1704a84163f739e2ee14 100644 (file)
@@ -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));