static int virtio_scsi_vring_init(VirtIOSCSI *s, VirtQueue *vq, int n)

{

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

    VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);

    int rc;



    /* Set up virtqueue notify */

    rc = k->set_host_notifier(qbus->parent, n, true);

    if (rc != 0) {

        fprintf(stderr, "virtio-scsi: Failed to set host notifier (%d)\n",

                rc);

        s->dataplane_fenced = true;

        return rc;

    }



    virtio_queue_aio_set_host_notifier_handler(vq, s->ctx, true, true);

    return 0;

}

static int virtio_scsi_vring_init(VirtIOSCSI *s, VirtQueue *vq, int n)

{

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

    VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);

    int rc;



    

    rc = k->set_host_notifier(qbus->parent, n, true);

    if (rc != 0) {

        fprintf(stderr, "virtio-scsi: Failed to set host notifier (%d)\n",

                rc);

        s->dataplane_fenced = true;

        return rc;

    }



    virtio_queue_aio_set_host_notifier_handler(vq, s->ctx, true, true);

    return 0;

}

static int virtio_scsi_vring_init(VirtIOSCSI *s, VirtQueue *vq, int n)
static int FUNC_0(VirtIOSCSI *VAR_0, VirtQueue *VAR_1, int VAR_2)

{

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

    VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);

    int VAR_3;



    

    VAR_3 = k->set_host_notifier(qbus->parent, VAR_2, true);

    if (VAR_3 != 0) {

        fprintf(stderr, "virtio-scsi: Failed to set host notifier (%d)\VAR_2",

                VAR_3);

        VAR_0->dataplane_fenced = true;

        return VAR_3;

    }



    virtio_queue_aio_set_host_notifier_handler(VAR_1, VAR_0->ctx, true, true);

    return 0;

}

static int FUNC_0(VirtIOSCSI *VAR_0, VirtQueue *VAR_1, int VAR_2)
{ BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(VAR_0))); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); int VAR_3; VAR_3 = k->set_host_notifier(qbus->parent, VAR_2, true); if (VAR_3 != 0) { fprintf(stderr, "virtio-scsi: Failed to set host notifier (%d)\VAR_2",
VAR_3); VAR_0->dataplane_fenced = true; return VAR_3; } virtio_queue_aio_set_host_notifier_handler(VAR_1, VAR_0->ctx, true, true); return 0; }