28 std::map<vm::field_type, vm::value_type>
g_vmcs;
96 intrinsics_ut::test_vmx_intel_x64_vmxon_nullptr()
98 void *invalid_ptr =
nullptr;
103 intrinsics_ut::test_vmx_intel_x64_vmxon_failure()
105 auto ___ = gsl::finally([&]
113 intrinsics_ut::test_vmx_intel_x64_vmxon_success()
119 intrinsics_ut::test_vmx_intel_x64_vmxoff_failure()
121 auto ___ = gsl::finally([&]
129 intrinsics_ut::test_vmx_intel_x64_vmxoff_success()
135 intrinsics_ut::test_vmx_intel_x64_vmclear_nullptr()
137 void *invalid_ptr =
nullptr;
142 intrinsics_ut::test_vmx_intel_x64_vmclear_failure()
144 auto ___ = gsl::finally([&]
152 intrinsics_ut::test_vmx_intel_x64_vmclear_success()
158 intrinsics_ut::test_vmx_intel_x64_vmload_nullptr()
160 void *invalid_ptr =
nullptr;
165 intrinsics_ut::test_vmx_intel_x64_vmload_failure()
167 auto ___ = gsl::finally([&]
175 intrinsics_ut::test_vmx_intel_x64_vmload_success()
181 intrinsics_ut::test_vmx_intel_x64_vmreset_nullptr()
183 void *invalid_ptr =
nullptr;
188 intrinsics_ut::test_vmx_intel_x64_vmreset_failure()
190 auto ___ = gsl::finally([&]
198 intrinsics_ut::test_vmx_intel_x64_vmreset_success()
204 intrinsics_ut::test_vmx_intel_x64_vmread_failure()
206 auto ___ = gsl::finally([&]
214 intrinsics_ut::test_vmx_intel_x64_vmwrite_failure()
216 auto ___ = gsl::finally([&]
224 intrinsics_ut::test_vmx_intel_x64_vmread_vmwrite_succcess()
234 intrinsics_ut::test_vmx_intel_x64_vmlaunch_demote_success()
240 intrinsics_ut::test_vmx_intel_x64_vmlaunch_demote_failure()
242 auto ___ = gsl::finally([&]
250 intrinsics_ut::test_vmx_intel_x64_invept()
255 auto ___ = gsl::finally([&]
264 intrinsics_ut::test_vmx_intel_x64_invvpid()
271 auto ___ = gsl::finally([&]
void load(gsl::not_null< void *> ptr)
#define expect_exception(f, e)
void invvpid_all_contexts()
bool __invvpid(uint64_t type, void *ptr) noexcept
bool __vmptrld(void *ptr) noexcept
std::map< vm::field_type, vm::value_type > g_vmcs
bool __vmptrst(void *ptr) noexcept
#define expect_no_exception(f)
void reset(gsl::not_null< void *> ptr)
void clear(gsl::not_null< void *> ptr)
void uint64_t uint64_t uint64_t *rdx noexcept
bool __invept(uint64_t type, void *ptr) noexcept
bool __vmwrite(uint64_t field, uint64_t val) noexcept
void invvpid_single_context_global(vpid_type vpid)
void write(field_type field, value_type value, name_type name="")
bool __vmlaunch_demote(void) noexcept
bool __vmxon(void *ptr) noexcept
bool __vmxoff(void) noexcept
auto read(field_type field, name_type name="")
void invvpid_individual_address(vpid_type vpid, integer_pointer addr)
void on(gsl::not_null< void *> ptr)
bool __vmread(uint64_t field, uint64_t *val) noexcept
bool __vmclear(void *ptr) noexcept
void invept_single_context(eptp_type eptp)
void invvpid_single_context(vpid_type vpid)