vhost: configure all host notifiers in a single MR transaction
commit0fdc6b8509f3d7663c2b5de164a5ab90173e2f19
authorLongpeng <longpeng2@huawei.com>
Tue, 27 Dec 2022 07:20:14 +0000 (27 15:20 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 8 Jan 2023 06:54:23 +0000 (8 01:54 -0500)
tree32ec595dff513d35a186e97fe6f003565d9f8517
parent8771589b6f81d66969808460fddf5a85b2237ac4
vhost: configure all host notifiers in a single MR transaction

This allows the vhost device to batch the setup of all its host notifiers.
This significantly reduces the device starting time, e.g. the time spend
on enabling notifiers reduce from 376ms to 9.1ms for a VM with 64 vCPUs
and 3 vhost-vDPA generic devices (vdpa_sim_blk, 64vq per device)

Signed-off-by: Longpeng <longpeng2@huawei.com>
Message-Id: <20221227072015.3134-3-longpeng2@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/virtio/vhost.c