]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commitdiff
xsa-170/196: Update to avoid using test_wants_user_mappings
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Mar 2024 20:52:15 +0000 (20:52 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Sun, 3 Mar 2024 00:13:29 +0000 (00:13 +0000)
The capability is going away.  Move stubs into .text.user.

No change in test behaviour.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
tests/xsa-170/main.c
tests/xsa-196/main.c

index 9b79e023db794a68fc31187e22cefe23d70ac61b..3351a2e3e106e4607b74a55c84a0de47b44a2ef0 100644 (file)
 
 const char test_title[] = "XSA-170 PoC";
 
-bool test_wants_user_mappings = true;
 bool test_needs_fep = true;
 
-void wild_jump(void)
+static void __user_text wild_jump(void)
 {
     /*
      * After XSA-170, Xen's instruction emulator was improved to perform a
@@ -42,7 +41,7 @@ void wild_jump(void)
                   :: "rm" (0x8000000000000000ULL));
 }
 
-void nop_slide(void)
+static void __user_text nop_slide(void)
 {
     /*
      * AMD hardware can correctly re-enter the guest with a non-canonical
index f50c333a636474b95ffa0b95c3e95b5ae84e17be..3817e46eac91f20f8128c85fb1355dbe0d8330c8 100644 (file)
@@ -26,7 +26,6 @@
 
 const char test_title[] = "XSA-196 PoC";
 
-bool test_wants_user_mappings = true;
 bool test_needs_fep = true;
 
 void custom_doublefault_handler(void);
@@ -42,7 +41,7 @@ static const struct xtf_idte idte = {
     .cs   = __KERN_CS,
 };
 
-unsigned long compat_userspace(void)
+static unsigned long __user_text compat_userspace(void)
 {
     exinfo_t fault = 0;