Xen Test Framework
main.c
Go to the documentation of this file.
1
32#include <xtf.h>
33
34const char test_title[] = "XSA-168 PoC";
35
36void test_main(void)
37{
43 asm volatile ("1: invlpg (%0); 2:"
44 _ASM_EXTABLE(1b, 2b)
45 :: "r" (0x8000000000000000UL));
46
48}
49
50/*
51 * Local variables:
52 * mode: C
53 * c-file-style: "BSD"
54 * c-basic-offset: 4
55 * tab-width: 4
56 * indent-tabs-mode: nil
57 * End:
58 */
void test_main(void)
To be implemented by each test, as its entry point.
Definition: main.c:110
const char test_title[]
The title of the test.
Definition: main.c:24
#define _ASM_EXTABLE(fault, fixup)
Create an exception table entry.
Definition: extable.h:50
void xtf_success(const char *fmt,...)
Report test success.
Definition: report.c:38
#define NULL
Definition: stddef.h:12