]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
vhost-user: Make RESET_DEVICE a per device message
authorTom Lonergan <tom.lonergan@nutanix.com>
Wed, 28 Jun 2023 16:39:27 +0000 (16:39 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Jul 2023 20:17:08 +0000 (16:17 -0400)
A device reset is issued per device, not per VQ. The legacy device reset
message, VHOST_USER_RESET_OWNER, is already a per device message. Therefore,
this change adds the proper message, VHOST_USER_RESET_DEVICE, to per device
messages.

Signed-off-by: Tom Lonergan <tom.lonergan@nutanix.com>
Message-Id: <20230628163927.108171-3-tom.lonergan@nutanix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
hw/virtio/vhost-user.c

index 65d629934347903865b95a0710be8599f6a487ca..8dcf049d422b9d03ab40294eca114211386a1fc9 100644 (file)
@@ -375,6 +375,7 @@ static bool vhost_user_per_device_request(VhostUserRequest request)
     case VHOST_USER_SET_MEM_TABLE:
     case VHOST_USER_GET_QUEUE_NUM:
     case VHOST_USER_NET_SET_MTU:
+    case VHOST_USER_RESET_DEVICE:
     case VHOST_USER_ADD_MEM_REG:
     case VHOST_USER_REM_MEM_REG:
         return true;