PV IOPL Emulation - PV IOPL Emulation
More...
#include <xtf.h>
Go to the source code of this file.
PV IOPL Emulation - PV IOPL Emulation
Definition in file main.c.
◆ mode
| Enumerator |
|---|
| KERN | |
| USER | |
| KERN | |
| USER | |
Definition at line 102 of file main.c.
◆ stub_cli()
| static unsigned long stub_cli |
( |
void |
| ) |
|
|
static |
◆ stub_user_cli()
| static unsigned long stub_user_cli |
( |
void |
| ) |
|
|
static |
◆ stub_outb()
| static unsigned long stub_outb |
( |
void |
| ) |
|
|
static |
◆ stub_user_outb()
| static unsigned long stub_user_outb |
( |
void |
| ) |
|
|
static |
◆ run_test()
| static void run_test |
( |
const struct test * |
t | ) |
|
|
static |
◆ hypercall_set_iopl()
| static void hypercall_set_iopl |
( |
unsigned int |
iopl | ) |
|
|
static |
◆ hypercall_should_fault()
| static bool hypercall_should_fault |
( |
enum mode |
mode, |
|
|
unsigned int |
iopl |
|
) |
| |
|
static |
◆ nop()
◆ vmassist_set_iopl()
| static void vmassist_set_iopl |
( |
unsigned int |
iopl | ) |
|
|
static |
◆ vmassist_should_fault()
| static bool vmassist_should_fault |
( |
enum mode |
mode, |
|
|
unsigned int |
iopl |
|
) |
| |
|
static |
◆ test_main()
To be implemented by each test, as its entry point.
- Todo:
- Implement better command line infrastructure, but this will do for now.
Definition at line 209 of file main.c.
◆ test_title
| const char test_title[] = "PV IOPL emulation" |
The title of the test.
Definition at line 43 of file main.c.
◆ insns
| const struct insn insns[] |
|
static |
Initial value:= {
}
static unsigned long stub_outb(void)
static unsigned long stub_user_outb(void)
static unsigned long stub_cli(void)
static unsigned long stub_user_cli(void)
◆ hypercall
| const struct test hypercall |
|
static |
Initial value:= {
}
static bool hypercall_should_fault(enum mode mode, unsigned int iopl)
static void hypercall_set_iopl(unsigned int iopl)
Definition at line 173 of file main.c.
◆ vmassist
| const struct test vmassist |
|
static |
Initial value:= {
}
static bool vmassist_should_fault(enum mode mode, unsigned int iopl)
static void vmassist_set_iopl(unsigned int iopl)
Definition at line 204 of file main.c.