Home
last modified time | relevance | path

Searched refs:vdx (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/test/bhyve-tests/tests/vmm/
H A Ddatarw_constraints.c48 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()
[all …]
H A Ddatarw_msrs.c38 do_data_write(int vmfd, struct vm_data_xfer *vdx) in do_data_write() argument
40 if (ioctl(vmfd, VM_DATA_WRITE, vdx) != 0) { in do_data_write()
43 if (vdx->vdx_result_len != vdx->vdx_len) { in do_data_write()
45 vdx->vdx_len, vdx->vdx_result_len); in do_data_write()
50 do_data_read(int vmfd, struct vm_data_xfer *vdx) in do_data_read() argument
52 if (ioctl(vmfd, VM_DATA_READ, vdx) != 0) { in do_data_read()
55 if (vdx->vdx_result_len != vdx->vdx_len) { in do_data_read()
57 vdx->vdx_len, vdx->vdx_result_len); in do_data_read()
62 query_data_size(int vmfd, struct vm_data_xfer *vdx) in query_data_size() argument
64 vdx->vdx_len = 0; in query_data_size()
[all …]
H A Ddatarw_vcpu.c51 struct vm_data_xfer vdx = { in check_inval_field() local
58 if (ioctl(vmfd, VM_DATA_WRITE, &vdx) == 0) { in check_inval_field()
68 do_data_write(int vmfd, struct vm_data_xfer *vdx) in do_data_write() argument
70 if (ioctl(vmfd, VM_DATA_WRITE, vdx) != 0) { in do_data_write()
73 if (vdx->vdx_result_len != vdx->vdx_len) { in do_data_write()
75 vdx->vdx_len, vdx->vdx_result_len); in do_data_write()
80 do_data_read(int vmfd, struct vm_data_xfer *vdx) in do_data_read() argument
82 if (ioctl(vmfd, VM_DATA_READ, vdx) != 0) { in do_data_read()
85 if (vdx->vdx_result_len != vdx->vdx_len) { in do_data_read()
87 vdx->vdx_len, vdx->vdx_result_len); in do_data_read()
[all …]
/illumos-gate/usr/src/uts/intel/io/vmm/
H A Dvmm_sol_dev.c1813 struct vm_data_xfer vdx; in vmmdev_do_ioctl() local
1815 if (ddi_copyin(datap, &vdx, sizeof (vdx), md) != 0) { in vmmdev_do_ioctl()
1819 if ((vdx.vdx_flags & ~VDX_FLAGS_VALID) != 0) { in vmmdev_do_ioctl()
1823 if (vdx.vdx_len > VM_DATA_XFER_LIMIT) { in vmmdev_do_ioctl()
1828 const size_t len = vdx.vdx_len; in vmmdev_do_ioctl()
1831 const void *udata = vdx.vdx_data; in vmmdev_do_ioctl()
1834 if ((vdx.vdx_flags & VDX_FLAG_READ_COPYIN) == 0) { in vmmdev_do_ioctl()
1843 vdx.vdx_result_len = 0; in vmmdev_do_ioctl()
1845 .vdr_class = vdx.vdx_class, in vmmdev_do_ioctl()
1846 .vdr_version = vdx.vdx_version, in vmmdev_do_ioctl()
[all …]