mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue