virtio: add back call to virtio_bus_device_unplugged
PATCH 1/1 virtio: add back call to virtio_bus_device_unplugged
This got lost in a rebase.
Reported-by Stefan Hajnoczi <[email protected]>
Signed-off-by Paolo Bonzini <[email protected]>
--- hw/virtio/virtio.c | 2 ++ 1 file changed, 2 insertions(+)
hw/virtio/virtio.c +2 -0
@@ -1172,6 +1172,8 @@ static void virtio_device_unrealize(DeviceState *dev, Error **errp)VirtioDeviceClass *vdc =VIRTIO_DEVICE_GET_CLASS (dev);Error *err =NULL ; +virtio_bus_device_unplugged (vdev); +if (vdc->unrealize !=NULL ) { vdc->unrealize (dev, &err);if (err !=NULL ) {
Signature · 1 line
1.8.4.2
Stefan Hajnoczi
AppliedQuoted 7 lines · Paolo Bonzini
This got lost in a rebase.
Reported-by Stefan Hajnoczi <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- hw/virtio/virtio.c | 2 ++ 1 file changed, 2 insertions(+)
Makes qemu-iotests happy again.
Thanks, applied to my block-next tree:
https://github.com/stefanha/qemu/commits/block-next
Stefan