virtio-mmio: stop ioeventfd on legacy reset
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Jun 2022 06:49:21 +0000 (08:49 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2022 14:50:30 +0000 (16:50 +0200)
commita44bed2f54185b795d8d8141bd810b554bcb750b
tree6c4be6dad6b0424ab905dc7f544a37c9126ddf42
parent997340f3c5190a311902eeaabd9413434e97ff4c
virtio-mmio: stop ioeventfd on legacy reset

If the queue PFN is set to zero on a virtio-mmio device, the device is reset.
In that case however the virtio_bus_stop_ioeventfd function was not
called; add it so that the behavior is similar to when status is set to 0.

Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/virtio/virtio-mmio.c