Xen Test Framework
Functions | Variables
main.c File Reference

XSA-286 More...

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

Go to the source code of this file.

Functions

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

Variables

const char test_title [] = "XSA-286 PoC"
 The title of the test. More...
 
static intpte_t l1t1 [L1_PT_ENTRIES]
 
static intpte_t l1t2 [L1_PT_ENTRIES]
 
static intpte_t l2t1 [L2_PT_ENTRIES]
 
static intpte_t l2t2 [L2_PT_ENTRIES]
 

Detailed Description

XSA-286

Definition in file main.c.

Function Documentation

◆ 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 46 of file main.c.

+ Here is the call graph for this function:

Variable Documentation

◆ test_title

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

The title of the test.

Definition at line 39 of file main.c.

◆ l1t1

intpte_t l1t1[L1_PT_ENTRIES]
static

Definition at line 41 of file main.c.

◆ l1t2

intpte_t l1t2[L1_PT_ENTRIES]
static

Definition at line 42 of file main.c.

◆ l2t1

intpte_t l2t1[L2_PT_ENTRIES]
static

Definition at line 43 of file main.c.

◆ l2t2

intpte_t l2t2[L2_PT_ENTRIES]
static

Definition at line 44 of file main.c.