static void vhost_scsi_stop(VHostSCSI *s)

{

    VirtIODevice *vdev = VIRTIO_DEVICE(s);

    BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev)));

    VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);

    int ret = 0;



    if (!k->set_guest_notifiers) {

        ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false);

        if (ret < 0) {

                error_report("vhost guest notifier cleanup failed: %d\n", ret);

        }

    }

    assert(ret >= 0);



    vhost_scsi_clear_endpoint(s);

    vhost_dev_stop(&s->dev, vdev);

    vhost_dev_disable_notifiers(&s->dev, vdev);

}

static void vhost_scsi_stop(VHostSCSI *s)

{

    VirtIODevice *vdev = VIRTIO_DEVICE(s);

    BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev)));

    VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);

    int ret = 0;



    if (!k->set_guest_notifiers) {

        ret = k->set_guest_notifiers(qbus->parent, s->dev.nvqs, false);

        if (ret < 0) {

                error_report("vhost guest notifier cleanup failed: %d\n", ret);

        }

    }

    assert(ret >= 0);



    vhost_scsi_clear_endpoint(s);

    vhost_dev_stop(&s->dev, vdev);

    vhost_dev_disable_notifiers(&s->dev, vdev);

}

    if (!k->set_guest_notifiers) {
static void FUNC_0(VHostSCSI *VAR_0)

{

    VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);

    BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev)));

    VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);

    int VAR_1 = 0;



    if (!k->set_guest_notifiers) {

        VAR_1 = k->set_guest_notifiers(qbus->parent, VAR_0->dev.nvqs, false);

        if (VAR_1 < 0) {

                error_report("vhost guest notifier cleanup failed: %d\n", VAR_1);

        }

    }

    assert(VAR_1 >= 0);



    vhost_scsi_clear_endpoint(VAR_0);

    vhost_dev_stop(&VAR_0->dev, vdev);

    vhost_dev_disable_notifiers(&VAR_0->dev, vdev);

}

static void FUNC_0(VHostSCSI *VAR_0)
{ VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0); BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev))); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); int VAR_1 = 0; if (!k->set_guest_notifiers) { VAR_1 = k->set_guest_notifiers(qbus->parent, VAR_0->dev.nvqs, false); if (VAR_1 < 0) { error_report("vhost guest notifier cleanup failed: %d\n", VAR_1); } } assert(VAR_1 >= 0); vhost_scsi_clear_endpoint(VAR_0); vhost_dev_stop(&VAR_0->dev, vdev); vhost_dev_disable_notifiers(&VAR_0->dev, vdev); }