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>
This commit is contained in:
parent
ddaaefb4dd
commit
83d0704734
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue