vhost: Change the sequence of device start
commit8b67fe00652b2640f3f841a7b102f6bcf82483a3
authorYajun Wu <yajunw@nvidia.com>
Mon, 17 Oct 2022 06:44:51 +0000 (17 14:44 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 7 Nov 2022 19:08:17 +0000 (7 14:08 -0500)
tree9b720b78f7cd6309fe47e9eedc6cfd33b593db1a
parent1b2b12376c8a513a0c7b5e3b8ea702038d3d7db5
vhost: Change the sequence of device start

This patch is part of adding vhost-user vhost_dev_start support. The
motivation is to improve backend configuration speed and reduce live
migration VM downtime.

Moving the device start routines after finishing all the necessary device
and VQ configuration, further aligning to the virtio specification for
"device initialization sequence".

Following patch will add vhost-user vhost_dev_start support.

Signed-off-by: Yajun Wu <yajunw@nvidia.com>
Acked-by: Parav Pandit <parav@nvidia.com>
Message-Id: <20221017064452.1226514-2-yajunw@nvidia.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/block/vhost-user-blk.c
hw/net/vhost_net.c