qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

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 <maxime.coquelin@redhat.com>
Message-Id: <20200618134501.145747-1-maxime.coquelin@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

Maxime Coquelin and committed by
Michael S. Tsirkin
553dc662 3e1dc4d5

+24
+24
docs/interop/vhost-user.rst
··· 816 816 #define VHOST_USER_PROTOCOL_F_RESET_DEVICE 13 817 817 #define VHOST_USER_PROTOCOL_F_INBAND_NOTIFICATIONS 14 818 818 #define VHOST_USER_PROTOCOL_F_CONFIGURE_MEM_SLOTS 15 819 + #define VHOST_USER_PROTOCOL_F_STATUS 16 819 820 820 821 Master message types 821 822 -------------------- ··· 1306 1307 been successfully negotiated, along with the 1307 1308 ``VHOST_USER_ADD_MEM_REG`` message, this message is used to set and 1308 1309 update the memory tables of the slave device. 1310 + 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 + 1309 1333 1310 1334 Slave message types 1311 1335 -------------------