Skip to content
Commit 6f0bb230 authored by Gal Hammer's avatar Gal Hammer Committed by Michael S. Tsirkin
Browse files

virtio: improve virtio devices initialization time



The loading time of a VM is quite significant when its virtio
devices use a large amount of virt-queues (e.g. a virtio-serial
device with max_ports=511). Most of the time is spend in the
creation of all the required event notifiers (ioeventfd and memory
regions).

This patch pack all the changes to the memory regions in a
single memory transaction.

Reported-by: default avatarSitong Liu <siliu@redhat.com>
Reported-by: default avatarXiaoling Gao <xiagao@redhat.com>
Signed-off-by: default avatarGal Hammer <ghammer@redhat.com>
Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 4fe6d78b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment