Lines Matching refs:vdx

48 	struct vm_data_xfer vdx = {  in test_size_boundaries()  local
56 if (ioctl(vmfd, VM_DATA_READ, &vdx) != 0) { in test_size_boundaries()
59 should_eq_u32("vdx_result_len", vdx.vdx_result_len, in test_size_boundaries()
63 vdx.vdx_result_len = 0; in test_size_boundaries()
64 if (ioctl(vmfd, VM_DATA_WRITE, &vdx) != 0) { in test_size_boundaries()
69 vdx.vdx_len = sizeof (struct vdi_atpic_v1) - sizeof (int); in test_size_boundaries()
70 vdx.vdx_result_len = 0; in test_size_boundaries()
71 if (ioctl(vmfd, VM_DATA_READ, &vdx) == 0) { in test_size_boundaries()
79 should_eq_u32("vdx_result_len", vdx.vdx_result_len, in test_size_boundaries()
83 vdx.vdx_result_len = 0; in test_size_boundaries()
84 if (ioctl(vmfd, VM_DATA_WRITE, &vdx) == 0) { in test_size_boundaries()
91 should_eq_u32("vdx_result_len", vdx.vdx_result_len, in test_size_boundaries()
99 vdx.vdx_len = sizeof (struct vdi_atpic_v1) + sizeof (int); in test_size_boundaries()
100 vdx.vdx_result_len = 0; in test_size_boundaries()
101 if (ioctl(vmfd, VM_DATA_READ, &vdx) != 0) { in test_size_boundaries()
104 should_eq_u32("vdx_result_len", vdx.vdx_result_len, in test_size_boundaries()
108 vdx.vdx_len = sizeof (struct vdi_atpic_v1) + sizeof (int); in test_size_boundaries()
109 vdx.vdx_result_len = 0; in test_size_boundaries()
110 if (ioctl(vmfd, VM_DATA_WRITE, &vdx) != 0) { in test_size_boundaries()
114 should_eq_u32("vdx_result_len", vdx.vdx_result_len, in test_size_boundaries()
143 struct vm_data_xfer vdx = { in test_vm_classes() local
152 if (ioctl(vmfd, VM_DATA_READ, &vdx) != 0) { in test_vm_classes()
155 vdx.vdx_class, vdx.vdx_version); in test_vm_classes()
157 if (vdx.vdx_class == VDC_VERSION || in test_vm_classes()
158 vdx.vdx_class == VDC_VMM_ARCH) { in test_vm_classes()
167 vdx.vdx_len = vdx.vdx_result_len; in test_vm_classes()
168 if (ioctl(vmfd, VM_DATA_WRITE, &vdx) != 0) { in test_vm_classes()
171 vdx.vdx_class, vdx.vdx_version); in test_vm_classes()
200 struct vm_data_xfer vdx = { in test_vcpu_classes() local
209 if (ioctl(vmfd, VM_DATA_READ, &vdx) != 0) { in test_vcpu_classes()
212 vdx.vdx_class, vdx.vdx_version); in test_vcpu_classes()
215 if (vdx.vdx_class == VDC_VMM_ARCH) { in test_vcpu_classes()
224 vdx.vdx_len = vdx.vdx_result_len; in test_vcpu_classes()
225 if (ioctl(vmfd, VM_DATA_WRITE, &vdx) != 0) { in test_vcpu_classes()
228 vdx.vdx_class, vdx.vdx_version); in test_vcpu_classes()
240 struct vm_data_xfer vdx = { in test_bogus_class() local
248 if (ioctl(vmfd, VM_DATA_READ, &vdx) == 0) { in test_bogus_class()
254 vdx.vdx_class = VDC_VERSION; in test_bogus_class()
255 vdx.vdx_version = 10000; in test_bogus_class()
256 if (ioctl(vmfd, VM_DATA_READ, &vdx) == 0) { in test_bogus_class()
270 struct vm_data_xfer vdx = { in test_vcpuid_combos() local
280 vdx.vdx_vcpuid = bad_per_vcpu[i]; in test_vcpuid_combos()
281 if (ioctl(vmfd, VM_DATA_READ, &vdx) == 0) { in test_vcpuid_combos()
284 vdx.vdx_vcpuid); in test_vcpuid_combos()
292 vdx.vdx_vcpuid = 0; in test_vcpuid_combos()
293 if (ioctl(vmfd, VM_DATA_READ, &vdx) != 0) { in test_vcpuid_combos()
299 vdx.vdx_vcpuid = bad_per_vcpu[i]; in test_vcpuid_combos()
300 if (ioctl(vmfd, VM_DATA_WRITE, &vdx) == 0) { in test_vcpuid_combos()
303 vdx.vdx_vcpuid); in test_vcpuid_combos()
307 vdx.vdx_vcpuid = 0; in test_vcpuid_combos()
308 if (ioctl(vmfd, VM_DATA_WRITE, &vdx) != 0) { in test_vcpuid_combos()
312 vdx.vdx_class = VDC_VERSION; in test_vcpuid_combos()
313 vdx.vdx_version = 1; in test_vcpuid_combos()
322 vdx.vdx_vcpuid = good_vm_wide[i]; in test_vcpuid_combos()
323 if (ioctl(vmfd, VM_DATA_READ, &vdx) != 0) { in test_vcpuid_combos()
326 vdx.vdx_vcpuid); in test_vcpuid_combos()
333 vdx.vdx_vcpuid = bad_vm_wide[i]; in test_vcpuid_combos()
334 if (ioctl(vmfd, VM_DATA_READ, &vdx) == 0) { in test_vcpuid_combos()
337 vdx.vdx_vcpuid); in test_vcpuid_combos()
348 struct vm_data_xfer vdx = { in test_vcpuid_time() local
356 vdx.vdx_vcpuid = -1; in test_vcpuid_time()
357 if (ioctl(vmfd, VM_DATA_READ, &vdx) != 0) { in test_vcpuid_time()
362 vdx.vdx_vcpuid = 0; in test_vcpuid_time()
363 if (ioctl(vmfd, VM_DATA_READ, &vdx) == 0) { in test_vcpuid_time()
365 vdx.vdx_vcpuid); in test_vcpuid_time()
376 vdx.vdx_vcpuid = -1; in test_vcpuid_time()
377 if (ioctl(vmfd, VM_DATA_WRITE, &vdx) != 0) { in test_vcpuid_time()
380 vdx.vdx_vcpuid = 0; in test_vcpuid_time()
381 if (ioctl(vmfd, VM_DATA_WRITE, &vdx) == 0) { in test_vcpuid_time()
383 vdx.vdx_vcpuid); in test_vcpuid_time()