static int virtio_rng_load(QEMUFile *f, void *opaque, int version_id)

{

    VirtIORNG *vrng = opaque;

    VirtIODevice *vdev = VIRTIO_DEVICE(vrng);



    if (version_id != 1) {

        return -EINVAL;

    }

    virtio_load(vdev, f, version_id);



    /* We may have an element ready but couldn't process it due to a quota

     * limit.  Make sure to try again after live migration when the quota may

     * have been reset.

     */

    virtio_rng_process(vrng);



    return 0;

}

static int virtio_rng_load(QEMUFile *f, void *opaque, int version_id)

{

    VirtIORNG *vrng = opaque;

    VirtIODevice *vdev = VIRTIO_DEVICE(vrng);



    if (version_id != 1) {

        return -EINVAL;

    }

    virtio_load(vdev, f, version_id);



    







    virtio_rng_process(vrng);



    return 0;

}

static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)

{

    VirtIORNG *vrng = VAR_1;

    VirtIODevice *vdev = VIRTIO_DEVICE(vrng);



    if (VAR_2 != 1) {

        return -EINVAL;

    }

    virtio_load(vdev, VAR_0, VAR_2);



    







    virtio_rng_process(vrng);



    return 0;

}

static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)
{ VirtIORNG *vrng = VAR_1; VirtIODevice *vdev = VIRTIO_DEVICE(vrng); if (VAR_2 != 1) { return -EINVAL; } virtio_load(vdev, VAR_0, VAR_2); virtio_rng_process(vrng); return 0; }