Functions | Variables
test_vmcs_intel_x64_host_vm_state.cpp File Reference

Go to the source code of this file.

Functions

void setup_gdt ()
 
void setup_idt ()
 
uint16_t __read_es (void) noexcept
 
uint16_t __read_cs (void) noexcept
 
uint16_t __read_ss (void) noexcept
 
uint16_t __read_ds (void) noexcept
 
uint16_t __read_fs (void) noexcept
 
uint16_t __read_gs (void) noexcept
 
uint16_t __read_tr (void) noexcept
 
uint16_t __read_ldtr (void) noexcept
 
void __write_es (uint16_t val) noexcept
 
void __write_cs (uint16_t val) noexcept
 
void __write_ss (uint16_t val) noexcept
 
void __write_ds (uint16_t val) noexcept
 
void __write_fs (uint16_t val) noexcept
 
void __write_gs (uint16_t val) noexcept
 
void __write_tr (uint16_t val) noexcept
 
void __write_ldtr (uint16_t val) noexcept
 
uint64_t __read_cr0 (void) noexcept
 
uint64_t __read_cr3 (void) noexcept
 
uint64_t __read_cr4 (void) noexcept
 
void __write_cr0 (uint64_t val) noexcept
 
void __write_cr3 (uint64_t val) noexcept
 
void __write_cr4 (uint64_t val) noexcept
 
uint64_t __read_dr7 (void) noexcept
 
void __write_dr7 (uint64_t val) noexcept
 
uint64_t __read_rflags (void) noexcept
 
void __read_gdt (gdt_reg_x64_t *gdt_reg) noexcept
 
void __read_idt (idt_reg_x64_t *idt_reg) noexcept
 

Variables

uint16_t test_es
 
uint16_t test_cs
 
uint16_t test_ss
 
uint16_t test_ds
 
uint16_t test_fs
 
uint16_t test_gs
 
uint16_t test_ldtr
 
uint16_t test_tr
 
uint16_t test_es_index
 
uint16_t test_cs_index
 
uint16_t test_ss_index
 
uint16_t test_ds_index
 
uint16_t test_fs_index
 
uint16_t test_gs_index
 
uint16_t test_ldtr_index
 
uint16_t test_tr_index
 
uint16_t test_gdt_index
 
uint64_t test_cr0
 
uint64_t test_cr3
 
uint64_t test_cr4
 
uint64_t test_dr7
 
uint64_t test_rflags
 
gdt_reg_x64_t test_gdtr {}
 
idt_reg_x64_t test_idtr {}
 
std::vector< gdt_x64::segment_descriptor_typetest_gdt
 
std::vector< idt_x64::interrupt_descriptor_typetest_idt = { 0x0 }
 

Function Documentation

◆ setup_gdt()

void setup_gdt ( )

Definition at line 77 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ setup_idt()

void setup_idt ( )

Definition at line 85 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_es()

uint16_t __read_es ( void  )
noexcept

Definition at line 92 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_cs()

uint16_t __read_cs ( void  )
noexcept

Definition at line 93 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_ss()

uint16_t __read_ss ( void  )
noexcept

Definition at line 94 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_ds()

uint16_t __read_ds ( void  )
noexcept

Definition at line 95 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_fs()

uint16_t __read_fs ( void  )
noexcept

Definition at line 96 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_gs()

uint16_t __read_gs ( void  )
noexcept

Definition at line 97 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_tr()

uint16_t __read_tr ( void  )
noexcept

Definition at line 98 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_ldtr()

uint16_t __read_ldtr ( void  )
noexcept

Definition at line 99 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __write_es()

void __write_es ( uint16_t  val)
noexcept

Definition at line 100 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __write_cs()

void __write_cs ( uint16_t  val)
noexcept

Definition at line 101 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __write_ss()

void __write_ss ( uint16_t  val)
noexcept

Definition at line 102 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __write_ds()

void __write_ds ( uint16_t  val)
noexcept

Definition at line 103 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __write_fs()

void __write_fs ( uint16_t  val)
noexcept

Definition at line 104 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __write_gs()

void __write_gs ( uint16_t  val)
noexcept

Definition at line 105 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __write_tr()

void __write_tr ( uint16_t  val)
noexcept

Definition at line 106 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __write_ldtr()

void __write_ldtr ( uint16_t  val)
noexcept

Definition at line 107 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_cr0()

uint64_t __read_cr0 ( void  )
noexcept

Definition at line 109 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_cr3()

uint64_t __read_cr3 ( void  )
noexcept

Definition at line 110 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_cr4()

uint64_t __read_cr4 ( void  )
noexcept

Definition at line 111 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __write_cr0()

void __write_cr0 ( uint64_t  val)
noexcept

Definition at line 112 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __write_cr3()

void __write_cr3 ( uint64_t  val)
noexcept

Definition at line 113 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __write_cr4()

void __write_cr4 ( uint64_t  val)
noexcept

Definition at line 114 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_dr7()

uint64_t __read_dr7 ( void  )
noexcept

Definition at line 116 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __write_dr7()

void __write_dr7 ( uint64_t  val)
noexcept

Definition at line 117 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_rflags()

uint64_t __read_rflags ( void  )
noexcept

Definition at line 119 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_gdt()

void __read_gdt ( gdt_reg_x64_t gdt_reg)
noexcept

Definition at line 121 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ __read_idt()

void __read_idt ( idt_reg_x64_t idt_reg)
noexcept

Definition at line 124 of file test_vmcs_intel_x64_host_vm_state.cpp.

Variable Documentation

◆ test_es

uint16_t test_es

Definition at line 36 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_cs

uint16_t test_cs

Definition at line 37 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_ss

uint16_t test_ss

Definition at line 38 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_ds

uint16_t test_ds

Definition at line 39 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_fs

uint16_t test_fs

Definition at line 40 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_gs

uint16_t test_gs

Definition at line 41 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_ldtr

uint16_t test_ldtr

Definition at line 42 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_tr

uint16_t test_tr

Definition at line 43 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_es_index

uint16_t test_es_index

Definition at line 45 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_cs_index

uint16_t test_cs_index

Definition at line 46 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_ss_index

uint16_t test_ss_index

Definition at line 47 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_ds_index

uint16_t test_ds_index

Definition at line 48 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_fs_index

uint16_t test_fs_index

Definition at line 49 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_gs_index

uint16_t test_gs_index

Definition at line 50 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_ldtr_index

uint16_t test_ldtr_index

Definition at line 51 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_tr_index

uint16_t test_tr_index

Definition at line 52 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_gdt_index

uint16_t test_gdt_index

Definition at line 53 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_cr0

uint64_t test_cr0

Definition at line 55 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_cr3

uint64_t test_cr3

Definition at line 56 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_cr4

uint64_t test_cr4

Definition at line 57 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_dr7

uint64_t test_dr7

Definition at line 58 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_rflags

uint64_t test_rflags

Definition at line 59 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_gdtr

gdt_reg_x64_t test_gdtr {}

Definition at line 61 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_idtr

idt_reg_x64_t test_idtr {}

Definition at line 62 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_gdt

std::vector<gdt_x64::segment_descriptor_type> test_gdt
Initial value:
=
{
0x0,
0xFF7FFFFFFFFFFFFF,
0xFF7FFFFFFFFFFFFF,
0xFF7FFFFFFFFFFFFF,
0xFF7FFFFFFFFFFFFF,
0xFF7FFFFFFFFFFFFF
}

Definition at line 64 of file test_vmcs_intel_x64_host_vm_state.cpp.

◆ test_idt

std::vector<idt_x64::interrupt_descriptor_type> test_idt = { 0x0 }

Definition at line 74 of file test_vmcs_intel_x64_host_vm_state.cpp.