Xen Test Framework
Functions | Variables
main.c File Reference

XSA-339 More...

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

Go to the source code of this file.

Functions

void entry_GP (void)
 
static unsigned long sysenter_nt (void)
 
static void fixup_sysenter_state (struct cpu_regs *regs)
 
void do_sysenter (struct cpu_regs *regs)
 May be implemented by a guest to handle SYSENTER invocations. More...
 
bool do_unhandled_exception (struct cpu_regs *regs)
 May be implemented by a guest to provide custom exception handling. More...
 
void test_main (void)
 To be implemented by each test, as its entry point. More...
 

Variables

const char test_title [] = "XSA-339 PoC"
 The title of the test. More...
 

Detailed Description

XSA-339

Definition in file main.c.

Function Documentation

◆ entry_GP()

void entry_GP ( void  )
+ Here is the caller graph for this function:

◆ sysenter_nt()

static unsigned long sysenter_nt ( void  )
static

Definition at line 39 of file main.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fixup_sysenter_state()

static void fixup_sysenter_state ( struct cpu_regs *  regs)
static

Definition at line 65 of file main.c.

+ Here is the caller graph for this function:

◆ do_sysenter()

void do_sysenter ( struct cpu_regs *  regs)

May be implemented by a guest to handle SYSENTER invocations.

Definition at line 74 of file main.c.

+ Here is the call graph for this function:

◆ do_unhandled_exception()

bool do_unhandled_exception ( struct cpu_regs *  regs)

May be implemented by a guest to provide custom exception handling.

Definition at line 79 of file main.c.

+ Here is the call 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 112 of file main.c.

+ Here is the call graph for this function:

Variable Documentation

◆ test_title

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

The title of the test.

Definition at line 35 of file main.c.