Functions | Variables
test_vmxon_intel_x64.cpp File Reference

Go to the source code of this file.

Functions

uint64_t __read_cr0 (void) noexcept
 
uint64_t __read_cr4 (void) noexcept
 
void __write_cr4 (uint64_t val) noexcept
 
uint64_t __read_msr (uint32_t addr) noexcept
 
void __write_msr (uint32_t addr, uint64_t val) noexcept
 
uint64_t __read_rflags (void) noexcept
 
uint32_t __cpuid_ecx (uint32_t val) noexcept
 
bool __vmxon (void *ptr) noexcept
 
bool __vmxoff (void) noexcept
 

Variables

bool g_vmxon_fails = false
 
bool g_vmxoff_fails = false
 
bool g_write_cr4_fails = false
 
bool g_virt_to_phys_return_nullptr = false
 

Function Documentation

◆ __read_cr0()

uint64_t __read_cr0 ( void  )
noexcept

Definition at line 49 of file test_vmxon_intel_x64.cpp.

◆ __read_cr4()

uint64_t __read_cr4 ( void  )
noexcept

Definition at line 53 of file test_vmxon_intel_x64.cpp.

◆ __write_cr4()

void __write_cr4 ( uint64_t  val)
noexcept

Definition at line 57 of file test_vmxon_intel_x64.cpp.

◆ __read_msr()

uint64_t __read_msr ( uint32_t  addr)
noexcept

Definition at line 66 of file test_vmxon_intel_x64.cpp.

◆ __write_msr()

void __write_msr ( uint32_t  addr,
uint64_t  val 
)
noexcept

Definition at line 70 of file test_vmxon_intel_x64.cpp.

◆ __read_rflags()

uint64_t __read_rflags ( void  )
noexcept

Definition at line 74 of file test_vmxon_intel_x64.cpp.

◆ __cpuid_ecx()

uint32_t __cpuid_ecx ( uint32_t  val)
noexcept

Definition at line 78 of file test_vmxon_intel_x64.cpp.

◆ __vmxon()

bool __vmxon ( void *  ptr)
noexcept

Definition at line 82 of file test_vmxon_intel_x64.cpp.

◆ __vmxoff()

bool __vmxoff ( void  )
noexcept

Definition at line 86 of file test_vmxon_intel_x64.cpp.

Variable Documentation

◆ g_vmxon_fails

bool g_vmxon_fails = false

Definition at line 43 of file test_vmxon_intel_x64.cpp.

◆ g_vmxoff_fails

bool g_vmxoff_fails = false

Definition at line 44 of file test_vmxon_intel_x64.cpp.

◆ g_write_cr4_fails

bool g_write_cr4_fails = false

Definition at line 45 of file test_vmxon_intel_x64.cpp.

◆ g_virt_to_phys_return_nullptr

bool g_virt_to_phys_return_nullptr = false

Definition at line 46 of file test_vmxon_intel_x64.cpp.