summary refs log tree commit diff
path: root/virtio_sys
diff options
context:
space:
mode:
authorChirantan Ekbote <chirantan@chromium.org>2017-08-28 09:51:18 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-09-18 16:48:43 -0700
commit88f9cba448ff7f1cd61c8bf66e34772132a8663f (patch)
treebe3a916b0991914a841ef51cbc487e07dacacf89 /virtio_sys
parent270f7b6a16a1c0475da061d5ecb344db10306a64 (diff)
downloadcrosvm-88f9cba448ff7f1cd61c8bf66e34772132a8663f.tar
crosvm-88f9cba448ff7f1cd61c8bf66e34772132a8663f.tar.gz
crosvm-88f9cba448ff7f1cd61c8bf66e34772132a8663f.tar.bz2
crosvm-88f9cba448ff7f1cd61c8bf66e34772132a8663f.tar.lz
crosvm-88f9cba448ff7f1cd61c8bf66e34772132a8663f.tar.xz
crosvm-88f9cba448ff7f1cd61c8bf66e34772132a8663f.tar.zst
crosvm-88f9cba448ff7f1cd61c8bf66e34772132a8663f.zip
Implement virtio-vsock
Implement the virtual sockets device using vhost subsystem of the host
kernel to handle data transfer.

BUG=chromium:708267
TEST=build and run maitred in guest VM without issue

Change-Id: I35b542c0fc7e0fd9296f7ba3e1dfce60bf524d15
Signed-off-by: Chirantan Ekbote <chirantan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/638838
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Diffstat (limited to 'virtio_sys')
-rw-r--r--virtio_sys/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/virtio_sys/src/lib.rs b/virtio_sys/src/lib.rs
index 3921c40..299bc44 100644
--- a/virtio_sys/src/lib.rs
+++ b/virtio_sys/src/lib.rs
@@ -41,3 +41,5 @@ ioctl_iow_nr!(VHOST_SCSI_CLEAR_ENDPOINT, VHOST, 0x41, vhost_scsi_target);
 ioctl_iow_nr!(VHOST_SCSI_GET_ABI_VERSION, VHOST, 0x42, ::std::os::raw::c_int);
 ioctl_iow_nr!(VHOST_SCSI_SET_EVENTS_MISSED, VHOST, 0x43, ::std::os::raw::c_uint);
 ioctl_iow_nr!(VHOST_SCSI_GET_EVENTS_MISSED, VHOST, 0x44, ::std::os::raw::c_uint);
+ioctl_iow_nr!(VHOST_VSOCK_SET_GUEST_CID, VHOST, 0x60, ::std::os::raw::c_ulonglong);
+ioctl_iow_nr!(VHOST_VSOCK_SET_RUNNING, VHOST, 0x61, ::std::os::raw::c_int);