Xen Test Framework
Functions | Variables
main.c File Reference

XSA-170 More...

#include <xtf.h>
+ Include dependency graph for main.c:

Go to the source code of this file.

Functions

static void wild_jump (void)
 
static void nop_slide (void)
 
void test_main (void)
 To be implemented by each test, as its entry point. More...
 

Variables

const char test_title [] = "XSA-170 PoC"
 The title of the test. More...
 
bool test_needs_fep = true
 Boolean indicating whether the test is entirely predicated on the available of the Force Emulation Prefix. More...
 

Detailed Description

XSA-170

Definition in file main.c.

Function Documentation

◆ wild_jump()

static void wild_jump ( void  )
static

Definition at line 29 of file main.c.

+ Here is the caller graph for this function:

◆ nop_slide()

static void nop_slide ( void  )
static

Definition at line 44 of file main.c.

+ Here is the caller graph for this function:

◆ test_main()

void test_main ( void  )

To be implemented by each test, as its entry point.

Todo:
Implement better command line infrastructure, but this will do for now.

At the time of writing, Xen doesn't correctly handle invlpg while running in shadow mode on AMD Gen1 hardware lacking decode assistance. For this test, we simply care that Xen doesn't crash.

Definition at line 58 of file main.c.

+ Here is the call graph for this function:

Variable Documentation

◆ test_title

const char test_title[] = "XSA-170 PoC"

The title of the test.

Definition at line 25 of file main.c.

◆ test_needs_fep

bool test_needs_fep = true

Boolean indicating whether the test is entirely predicated on the available of the Force Emulation Prefix.

Definition at line 27 of file main.c.