From a746f85b5926d40f325c9303783cb0895214132f Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Mon, 27 Jul 2020 10:43:28 +0200 Subject: 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 --- src/vhost_user/message.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/vhost_user') 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 for SlaveReq { -- cgit v1.2.3