Skip to content

Commit 553dc66

Browse files
mcoquelinmstsirkin
authored andcommitted
docs: vhost-user: add Virtio status protocol feature
This patch specifies the VHOST_USER_SET_STATUS and VHOST_USER_GET_STATUS requests, which are sent by the master to update and query the Virtio status in the backend. Signed-off-by: Maxime Coquelin <[email protected]> Message-Id: <[email protected]> Acked-by: Jason Wang <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 3e1dc4d commit 553dc66

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/interop/vhost-user.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ Protocol features
816816
#define VHOST_USER_PROTOCOL_F_RESET_DEVICE 13
817817
#define VHOST_USER_PROTOCOL_F_INBAND_NOTIFICATIONS 14
818818
#define VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS 15
819+
#define VHOST_USER_PROTOCOL_F_STATUS 16
819820
820821
Master message types
821822
--------------------
@@ -1307,6 +1308,29 @@ Master message types
13071308
``VHOST_USER_ADD_MEM_REG`` message, this message is used to set and
13081309
update the memory tables of the slave device.
13091310

1311+
``VHOST_USER_SET_STATUS``
1312+
:id: 39
1313+
:equivalent ioctl: VHOST_VDPA_SET_STATUS
1314+
:slave payload: N/A
1315+
:master payload: ``u64``
1316+
1317+
When the ``VHOST_USER_PROTOCOL_F_STATUS`` protocol feature has been
1318+
successfully negotiated, this message is submitted by the master to
1319+
notify the backend with updated device status as defined in the Virtio
1320+
specification.
1321+
1322+
``VHOST_USER_GET_STATUS``
1323+
:id: 40
1324+
:equivalent ioctl: VHOST_VDPA_GET_STATUS
1325+
:slave payload: ``u64``
1326+
:master payload: N/A
1327+
1328+
When the ``VHOST_USER_PROTOCOL_F_STATUS`` protocol feature has been
1329+
successfully negotiated, this message is submitted by the master to
1330+
query the backend for its device status as defined in the Virtio
1331+
specification.
1332+
1333+
13101334
Slave message types
13111335
-------------------
13121336

0 commit comments

Comments
 (0)