Re: [Qemu-devel] [PATCH] virtio: improve virtio devices initialization time

2018-01-12 Thread Michael S. Tsirkin
On Fri, Jan 12, 2018 at 10:48:21AM +0200, Gal Hammer wrote: > > On Thu, Jan 11, 2018 at 9:52 PM, Michael S. Tsirkin wrote: > > On Thu, Jan 11, 2018 at 12:16:56PM +0200, Gal Hammer wrote: > > The loading time of a VM is quite significant when its virtio > > devices uses a large amount

Re: [Qemu-devel] [PATCH] virtio: improve virtio devices initialization time

2018-01-12 Thread Gal Hammer
On Thu, Jan 11, 2018 at 9:52 PM, Michael S. Tsirkin wrote: > On Thu, Jan 11, 2018 at 12:16:56PM +0200, Gal Hammer wrote: > > The loading time of a VM is quite significant when its virtio > > devices uses a large amount of virt-queues (e.g. a virtio-serial > > device with > ​​ > max_ports=511). Mo

Re: [Qemu-devel] [PATCH] virtio: improve virtio devices initialization time

2018-01-11 Thread Michael S. Tsirkin
On Thu, Jan 11, 2018 at 12:16:56PM +0200, Gal Hammer wrote: > The loading time of a VM is quite significant when its virtio > devices uses 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 notifier

[Qemu-devel] [PATCH] virtio: improve virtio devices initialization time

2018-01-11 Thread Gal Hammer
The loading time of a VM is quite significant when its virtio devices uses 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 t