From 0bfb5a3180dbff2b29ec1fe8af4ed4dbec99a7db Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Fri, 5 Mar 2021 10:20:15 +0100 Subject: vhost_user: Update list of message types The vhost-user specification moved forward by adding more message types. This commit extends the list according to the latest specification. Signed-off-by: Sebastien Boeuf --- src/vhost_user/message.rs | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'src/vhost_user') diff --git a/src/vhost_user/message.rs b/src/vhost_user/message.rs index 8600410..01e2c2c 100644 --- a/src/vhost_user/message.rs +++ b/src/vhost_user/message.rs @@ -114,10 +114,30 @@ pub enum MasterReq { POSTCOPY_END = 30, /// Get a shared buffer from slave. GET_INFLIGHT_FD = 31, - /// Send the shared inflight buffer back to slave + /// Send the shared inflight buffer back to slave. SET_INFLIGHT_FD = 32, + /// Sets the GPU protocol socket file descriptor. + GPU_SET_SOCKET = 33, + /// Ask the vhost user backend to disable all rings and reset all internal + /// device state to the initial state. + RESET_DEVICE = 34, + /// Indicate that a buffer was added to the vring instead of signalling it + /// using the vring’s kick file descriptor. + VRING_KICK = 35, + /// Return a u64 payload containing the maximum number of memory slots. + GET_MAX_MEM_SLOTS = 36, + /// Update the memory tables by adding the region described. + ADD_MEM_REG = 37, + /// Update the memory tables by removing the region described. + REM_MEM_REG = 38, + /// Notify the backend with updated device status as defined in the VIRTIO + /// specification. + SET_STATUS = 39, + /// Query the backend for its device status as defined in the VIRTIO + /// specification. + GET_STATUS = 40, /// Upper bound of valid commands. - MAX_CMD = 33, + MAX_CMD = 41, } impl Into for MasterReq { -- cgit v1.2.3