static void vhost_scsi_unrealize(DeviceState *dev, Error **errp)

{

    VirtIODevice *vdev = VIRTIO_DEVICE(dev);

    VHostSCSI *s = VHOST_SCSI(dev);



    migrate_del_blocker(s->migration_blocker);

    error_free(s->migration_blocker);



    /* This will stop vhost backend. */

    vhost_scsi_set_status(vdev, 0);




    g_free(s->dev.vqs);



    virtio_scsi_common_unrealize(dev, errp);

}
static void vhost_scsi_unrealize(DeviceState *dev, Error **errp)

{

    VirtIODevice *vdev = VIRTIO_DEVICE(dev);

    VHostSCSI *s = VHOST_SCSI(dev);



    migrate_del_blocker(s->migration_blocker);

    error_free(s->migration_blocker);



    

    vhost_scsi_set_status(vdev, 0);




    g_free(s->dev.vqs);



    virtio_scsi_common_unrealize(dev, errp);

}
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)

{

    VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);

    VHostSCSI *s = VHOST_SCSI(VAR_0);



    migrate_del_blocker(s->migration_blocker);

    error_free(s->migration_blocker);



    

    vhost_scsi_set_status(vdev, 0);




    g_free(s->VAR_0.vqs);



    virtio_scsi_common_unrealize(VAR_0, VAR_1);

}
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{ VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0); VHostSCSI *s = VHOST_SCSI(VAR_0); migrate_del_blocker(s->migration_blocker); error_free(s->migration_blocker); vhost_scsi_set_status(vdev, 0); g_free(s->VAR_0.vqs); virtio_scsi_common_unrealize(VAR_0, VAR_1); }