diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-12-20 19:48:51 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2013-12-23 18:02:23 +0200 |
commit | 83d0704734955bf1aa7697af7be2a50e11a80a42 (patch) | |
tree | 4fa128a0ca5850559c22aefc0d811b13d4542297 /hw | |
parent | ddaaefb4dd427d6d2e41c1cfbe0cd8d8e8d6aad9 (diff) |
virtio: add back call to virtio_bus_device_unplugged
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/virtio/virtio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 144b9ca2ef..a001e668c4 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -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) { |