Xen Test Framework
Macros | Functions | Variables
main.c File Reference

XSA-462 More...

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

Go to the source code of this file.

Macros

#define TEST_APIC_MODE   APIC_MODE_XAPIC
 

Functions

static void apic_icr_force_write (uint64_t val)
 
void test_main (void)
 To be implemented by each test, as its entry point. More...
 

Variables

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

Detailed Description

XSA-462

Definition in file main.c.

Macro Definition Documentation

◆ TEST_APIC_MODE

#define TEST_APIC_MODE   APIC_MODE_XAPIC

Definition at line 17 of file main.c.

Function Documentation

◆ apic_icr_force_write()

static void apic_icr_force_write ( uint64_t  val)
static

Definition at line 24 of file main.c.

+ Here is the call graph for this function:
+ 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 40 of file main.c.

+ Here is the call graph for this function:

Variable Documentation

◆ test_title

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

The title of the test.

Definition at line 21 of file main.c.