]> git.proxmox.com Git - mirror_qemu.git/commit
vhost: set SVQ device call handler at SVQ start
authorEugenio Pérez <eperezma@redhat.com>
Thu, 15 Dec 2022 11:31:34 +0000 (12:31 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 21 Dec 2022 11:35:28 +0000 (06:35 -0500)
commit20e7412bfd63c68f1798fbdb799aedb7e05fee88
tree9aa21a63f830eef0de5489c6098aa611538b5b8a
parent712c1a3171cf62d501dac5af58f77d5fea70350d
vhost: set SVQ device call handler at SVQ start

By the end of this series CVQ is shadowed as long as the features
support it.

Since we don't know at the beginning of qemu running if this is
supported, move the event notifier handler setting to the start of the
SVQ, instead of the start of qemu run. This will avoid to create them if
the device does not support SVQ.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20221215113144.322011-3-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-shadow-virtqueue.c