Xen Test Framework
Functions | Variables
util.c File Reference
#include "test.h"
+ Include dependency graph for util.c:

Go to the source code of this file.

Functions

static void decode_test_exinfo (char *str, size_t n, exinfo_t ex)
 
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 exinfo_t get_vmx_insn_err (void)
 
exinfo_t stub_vmxon (uint64_t paddr)
 
exinfo_t stub_vmptrld (uint64_t paddr)
 
exinfo_t stub_vmxon_user (uint64_t paddr)
 

Variables

uint32_t vmcs_revid
 Hardware VMCS Revision ID. More...
 

Function Documentation

◆ decode_test_exinfo()

static void decode_test_exinfo ( char *  str,
size_t  n,
exinfo_t  ex 
)
static

Definition at line 3 of file util.c.

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

◆ 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:

◆ get_vmx_insn_err()

static exinfo_t get_vmx_insn_err ( void  )
static

Definition at line 66 of file util.c.

+ 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:

Variable Documentation

◆ vmcs_revid

uint32_t vmcs_revid

Hardware VMCS Revision ID.

Definition at line 53 of file util.c.