Skip to content
Snippets Groups Projects
Commit a44bed2f authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

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: default avatarCornelia Huck <cohuck@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 997340f3
No related branches found
No related tags found
No related merge requests found
......@@ -376,6 +376,7 @@ static void virtio_mmio_write(void *opaque, hwaddr offset, uint64_t value,
return;
}
if (value == 0) {
virtio_mmio_stop_ioeventfd(proxy);
virtio_reset(vdev);
} else {
virtio_queue_set_addr(vdev, vdev->queue_sel,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment