Xen Test Framework
Macros | Functions | Variables
test.h File Reference
#include <xtf.h>
#include <arch/vmx.h>
+ Include dependency graph for test.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VMERR_SUCCESS   0
 
#define VMERR_INVALID   (EXINFO_EXPECTED | EXINFO_AVAIL0)
 
#define VMERR_VALID(x)   (EXINFO_EXPECTED | EXINFO_AVAIL1 | ((x) & 0xffff))
 

Functions

void check (const char *func, exinfo_t got, exinfo_t exp)
 Compare an expectation against what really happenend, printing human-readable information in case of a mismatch. More...
 
void vmx_collect_data (void)
 Collect real information about the VT-x environment, for use by test. More...
 
static void clear_vmcs (void *_vmcs, uint32_t rev)
 
exinfo_t stub_vmxon (uint64_t paddr)
 
exinfo_t stub_vmptrld (uint64_t paddr)
 
exinfo_t stub_vmxon_user (uint64_t paddr)
 
void test_msr_vmx (void)
 
void test_vmxon (void)
 

Variables

uint32_t vmcs_revid
 Hardware VMCS Revision ID. More...
 

Macro Definition Documentation

◆ VMERR_SUCCESS

#define VMERR_SUCCESS   0

Definition at line 15 of file test.h.

◆ VMERR_INVALID

#define VMERR_INVALID   (EXINFO_EXPECTED | EXINFO_AVAIL0)

Definition at line 16 of file test.h.

◆ VMERR_VALID

#define VMERR_VALID (   x)    (EXINFO_EXPECTED | EXINFO_AVAIL1 | ((x) & 0xffff))

Definition at line 17 of file test.h.

Function Documentation

◆ check()

void check ( const char *  func,
exinfo_t  got,
exinfo_t  exp 
)

Compare an expectation against what really happenend, printing human-readable information in case of a mismatch.

Definition at line 37 of file util.c.

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

◆ vmx_collect_data()

void vmx_collect_data ( void  )

Collect real information about the VT-x environment, for use by test.

Definition at line 55 of file util.c.

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

◆ clear_vmcs()

static void clear_vmcs ( void *  _vmcs,
uint32_t  rev 
)
inlinestatic

Definition at line 33 of file test.h.

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

◆ stub_vmxon()

exinfo_t stub_vmxon ( uint64_t  paddr)

Definition at line 77 of file util.c.

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

◆ stub_vmptrld()

exinfo_t stub_vmptrld ( uint64_t  paddr)

Definition at line 103 of file util.c.

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

◆ stub_vmxon_user()

exinfo_t stub_vmxon_user ( uint64_t  paddr)

Definition at line 129 of file util.c.

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

◆ test_msr_vmx()

void test_msr_vmx ( void  )

Definition at line 54 of file msr.c.

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

◆ test_vmxon()

void test_vmxon ( void  )

Definition at line 171 of file vmxon.c.

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

Variable Documentation

◆ vmcs_revid

uint32_t vmcs_revid

Hardware VMCS Revision ID.

Definition at line 53 of file util.c.