virtio: add back call to virtio_bus_device_unplugged
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Dec 2013 18:48:51 +0000 (19:48 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 23 Dec 2013 16:02:23 +0000 (18:02 +0200)
This got lost in a rebase.

Reported-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio.c

index 144b9ca2ef63a6cd00feb59cd18434a901152277..a001e668c46e3bec8b1e7a115e4694077a3674a4 100644 (file)
@@ -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) {