27 vcpu_ut::test_vcpu_invalid_id()
33 vcpu_ut::test_vcpu_null_debug_ring()
39 vcpu_ut::test_vcpu_valid()
41 auto dr = std::unique_ptr<debug_ring>(
nullptr);
46 vcpu_ut::test_vcpu_write_empty_string()
50 auto &&vc = std::make_unique<vcpu>(0);
59 vcpu_ut::test_vcpu_write_hello_world()
63 auto &&vc = std::make_unique<vcpu>(0);
65 vc->write(
"hello world");
72 vcpu_ut::test_vcpu_init_null_attr()
74 auto &&vc = std::make_unique<vcpu>(0);
82 vcpu_ut::test_vcpu_init_valid_attr()
85 auto &&vc = std::make_unique<vcpu>(0);
93 vcpu_ut::test_vcpu_fini_null_attr()
95 auto &&vc = std::make_unique<vcpu>(0);
105 vcpu_ut::test_vcpu_fini_valid_attr()
108 auto &&vc = std::make_unique<vcpu>(0);
118 vcpu_ut::test_vcpu_fini_without_init_without_run()
120 auto &&vc = std::make_unique<vcpu>(0);
130 vcpu_ut::test_vcpu_fini_with_init_without_run()
132 auto &&vc = std::make_unique<vcpu>(0);
144 vcpu_ut::test_vcpu_fini_without_init_with_run()
146 auto &&vc = std::make_unique<vcpu>(0);
158 vcpu_ut::test_vcpu_fini_with_init_with_run()
160 auto &&vc = std::make_unique<vcpu>(0);
173 vcpu_ut::test_vcpu_run_null_attr()
175 auto &&vc = std::make_unique<vcpu>(0);
183 vcpu_ut::test_vcpu_run_valid_attr()
186 auto &&vc = std::make_unique<vcpu>(0);
194 vcpu_ut::test_vcpu_run_without_init()
196 auto &&vc = std::make_unique<vcpu>(0);
204 vcpu_ut::test_vcpu_run_with_init()
206 auto &&vc = std::make_unique<vcpu>(0);
216 vcpu_ut::test_vcpu_hlt_null_attr()
218 auto &&vc = std::make_unique<vcpu>(0);
226 vcpu_ut::test_vcpu_hlt_valid_attr()
229 auto &&vc = std::make_unique<vcpu>(0);
237 vcpu_ut::test_vcpu_hlt_without_run()
239 auto &&vc = std::make_unique<vcpu>(0);
247 vcpu_ut::test_vcpu_hlt_with_run()
249 auto &&vc = std::make_unique<vcpu>(0);
259 vcpu_ut::test_vcpu_id()
261 auto vc = std::make_unique<vcpu>(1);
266 vcpu_ut::test_vcpu_is_bootstrap_vcpu()
268 auto &&vc = std::make_unique<vcpu>(0);
273 vcpu_ut::test_vcpu_is_not_bootstrap_vcpu()
275 auto vc = std::make_unique<vcpu>(1);
280 vcpu_ut::test_vcpu_is_host_vm_vcpu()
282 auto vc = std::make_unique<vcpu>(1);
287 vcpu_ut::test_vcpu_is_not_host_vm_vcpu()
289 auto vc = std::make_unique<vcpu>(0x0000000100000000);
294 vcpu_ut::test_vcpu_is_guest_vm_vcpu()
296 auto vc = std::make_unique<vcpu>(0x0000000100000000);
301 vcpu_ut::test_vcpu_is_not_guest_vm_vcpu()
303 auto vc = std::make_unique<vcpu>(1);
308 vcpu_ut::test_vcpu_is_running_vm_vcpu()
310 auto &&vc = std::make_unique<vcpu>(0);
317 vcpu_ut::test_vcpu_is_not_running_vm_vcpu()
319 auto &&vc = std::make_unique<vcpu>(0);
324 vcpu_ut::test_vcpu_is_initialized_vm_vcpu()
326 auto &&vc = std::make_unique<vcpu>(0);
333 vcpu_ut::test_vcpu_is_not_initialized_vm_vcpu()
335 auto &&vc = std::make_unique<vcpu>(0);
#define expect_exception(f, e)
int64_t get_drr(uint64_t vcpuid, struct debug_ring_resources_t **drr)
int64_t unsigned long void * data
#define expect_no_exception(f)
uint64_t debug_ring_read(struct debug_ring_resources_t *drr, char *str, uint64_t len)
debug_ring_resources_t * drr
constexpr const auto reserved