diff options
author | Sebastien Boeuf <sebastien.boeuf@intel.com> | 2020-07-27 10:43:28 +0200 |
---|---|---|
committer | Andreea Florescu <andreea.florescu15@gmail.com> | 2020-09-04 17:59:53 +0300 |
commit | a746f85b5926d40f325c9303783cb0895214132f (patch) | |
tree | fe0b6e1fdc067d65fdcae584b147640603037d52 /src/vhost_user | |
parent | 30d6199b494af77069b77ebcbd4228a92560572c (diff) | |
download | vmm_vhost-a746f85b5926d40f325c9303783cb0895214132f.tar.gz |
vhost_user: Update the list of slave messages
New messages VHOST_USER_SLAVE_VRING_CALL and VHOST_USER_SLAVE_VRING_ERR
have been introduced as part of the vhost-user specification, shifting
the virtio-fs slave messages to higher values.
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Diffstat (limited to 'src/vhost_user')
-rw-r--r-- | src/vhost_user/message.rs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/vhost_user/message.rs b/src/vhost_user/message.rs index dde5aa9..c2e9127 100644 --- a/src/vhost_user/message.rs +++ b/src/vhost_user/message.rs @@ -144,16 +144,20 @@ pub enum SlaveReq { CONFIG_CHANGE_MSG = 2, /// Set host notifier for a specified queue. VRING_HOST_NOTIFIER_MSG = 3, + /// Indicate that a buffer was used from the vring. + VRING_CALL = 4, + /// Indicate that an error occurred on the specific vring. + VRING_ERR = 5, /// Virtio-fs draft: map file content into the window. - FS_MAP = 4, + FS_MAP = 6, /// Virtio-fs draft: unmap file content from the window. - FS_UNMAP = 5, + FS_UNMAP = 7, /// Virtio-fs draft: sync file content. - FS_SYNC = 6, + FS_SYNC = 8, /// Virtio-fs draft: perform a read/write from an fd directly to GPA. - FS_IO = 7, + FS_IO = 9, /// Upper bound of valid commands. - MAX_CMD = 8, + MAX_CMD = 10, } impl Into<u32> for SlaveReq { |