45 static uint64_t test_ia32_efer_msr;
48 setup_vmm_state(MockRepository &mocks)
83 vmcs_ut::test_vmm_state_gdt_not_setup()
86 setup_vmm_state(mocks);
122 vmcs_ut::test_vmm_state_segment_registers()
124 MockRepository mocks;
125 setup_vmm_state(mocks);
143 vmcs_ut::test_vmm_state_control_registers()
145 MockRepository mocks;
146 setup_vmm_state(mocks);
164 vmcs_ut::test_vmm_state_rflags()
166 MockRepository mocks;
167 setup_vmm_state(mocks);
180 vmcs_ut::test_vmm_state_gdt_base()
182 MockRepository mocks;
183 setup_vmm_state(mocks);
196 vmcs_ut::test_vmm_state_idt_base()
198 MockRepository mocks;
199 setup_vmm_state(mocks);
212 vmcs_ut::test_vmm_state_gdt_limit()
214 MockRepository mocks;
215 setup_vmm_state(mocks);
228 vmcs_ut::test_vmm_state_idt_limit()
230 MockRepository mocks;
231 setup_vmm_state(mocks);
244 vmcs_ut::test_vmm_state_segment_registers_limit()
246 MockRepository mocks;
247 setup_vmm_state(mocks);
265 vmcs_ut::test_vmm_state_segment_registers_access_rights()
267 MockRepository mocks;
268 setup_vmm_state(mocks);
286 vmcs_ut::test_vmm_state_segment_registers_base()
288 MockRepository mocks;
289 setup_vmm_state(mocks);
307 vmcs_ut::test_vmm_state_ia32_efer_msr()
309 MockRepository mocks;
310 setup_vmm_state(mocks);
312 test_ia32_efer_msr = 0;
323 this->
expect_true(state.ia32_efer_msr() == test_ia32_efer_msr);
329 vmcs_ut::test_vmm_state_dump()
331 MockRepository mocks;
332 setup_vmm_state(mocks);
#define RUN_UNITTEST_WITH_MOCKS(a, b)
constexpr const auto ring0_cs_descriptor
access_rights_type access_rights(index_type index) const
#define expect_no_exception(f)
constexpr const auto mask
constexpr const auto pat_value
struct cpuid_regs g_cpuid_regs
constexpr const auto ring0_tr_descriptor
constexpr const auto ring0_gs_descriptor
integer_pointer base() const
constexpr const auto ring0_ss_descriptor
uintptr_t integer_pointer
constexpr const auto ring0_fs_descriptor
root_page_table_x64 * root_pt() noexcept