diff options
author | Sebastien Boeuf <sebastien.boeuf@intel.com> | 2021-03-05 10:20:15 +0100 |
---|---|---|
committer | Jiang Liu <gerry@linux.alibaba.com> | 2021-03-10 23:37:29 +0800 |
commit | 0bfb5a3180dbff2b29ec1fe8af4ed4dbec99a7db (patch) | |
tree | 5272a8326cab7794ae238993c3f4afcdcc9df704 | |
parent | 77843048602ebc69cb5cd0352a66d98a68cb0e7d (diff) | |
download | vmm_vhost-0bfb5a3180dbff2b29ec1fe8af4ed4dbec99a7db.tar.gz |
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 <sebastien.boeuf@intel.com>
-rw-r--r-- | src/vhost_user/message.rs | 24 |
1 files changed, 22 insertions, 2 deletions
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<u32> for MasterReq { |