static int vhost_set_vring(struct vhost_dev *dev,

                           unsigned long int request,

                           struct vhost_vring_state *ring)

{

    VhostUserMsg msg = {

        .request = request,

        .flags = VHOST_USER_VERSION,

        .state = *ring,

        .size = sizeof(*ring),

    };



    vhost_user_write(dev, &msg, NULL, 0);



    return 0;

}

static int vhost_set_vring(struct vhost_dev *dev,

                           unsigned long int request,

                           struct vhost_vring_state *ring)

{

    VhostUserMsg msg = {

        .request = request,

        .flags = VHOST_USER_VERSION,

        .state = *ring,

        .size = sizeof(*ring),

    };



    vhost_user_write(dev, &msg, NULL, 0);



    return 0;

}

    };         .state = *ring,         .state = *ring,
static int FUNC_0(struct vhost_dev *VAR_0,

                           unsigned long int VAR_1,

                           struct vhost_vring_state *VAR_2)

{

    VhostUserMsg msg = {

        .VAR_1 = VAR_1,

        .flags = VHOST_USER_VERSION,

        .state = *VAR_2,

        .size = sizeof(*VAR_2),

    };



    vhost_user_write(VAR_0, &msg, NULL, 0);



    return 0;

}

static int FUNC_0(struct vhost_dev *VAR_0,
unsigned long int VAR_1,
struct vhost_vring_state *VAR_2)
{ VhostUserMsg msg = { .VAR_1 = VAR_1,
.flags = VHOST_USER_VERSION,
.state = *VAR_2,
.size = sizeof(*VAR_2),
}; vhost_user_write(VAR_0, &msg, NULL, 0); return 0; }