static int virtio_rng_device_exit(DeviceState *qdev)

{

    VirtIORNG *vrng = VIRTIO_RNG(qdev);

    VirtIODevice *vdev = VIRTIO_DEVICE(qdev);



    timer_del(vrng->rate_limit_timer);

    timer_free(vrng->rate_limit_timer);

    unregister_savevm(qdev, "virtio-rng", vrng);

    virtio_cleanup(vdev);

    return 0;

}

static int virtio_rng_device_exit(DeviceState *qdev)

{

    VirtIORNG *vrng = VIRTIO_RNG(qdev);

    VirtIODevice *vdev = VIRTIO_DEVICE(qdev);



    timer_del(vrng->rate_limit_timer);

    timer_free(vrng->rate_limit_timer);

    unregister_savevm(qdev, "virtio-rng", vrng);

    virtio_cleanup(vdev);

    return 0;

}

static int virtio_rng_device_exit(DeviceState *qdev)     VirtIORNG *vrng = VIRTIO_RNG(qdev);     VirtIODevice *vdev = VIRTIO_DEVICE(qdev);     unregister_savevm(qdev, "virtio-rng", vrng);     return 0;
static int FUNC_0(DeviceState *VAR_0)

{

    VirtIORNG *vrng = VIRTIO_RNG(VAR_0);

    VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);



    timer_del(vrng->rate_limit_timer);

    timer_free(vrng->rate_limit_timer);

    unregister_savevm(VAR_0, "virtio-rng", vrng);

    virtio_cleanup(vdev);

    return 0;

}

static int FUNC_0(DeviceState *VAR_0)
{ VirtIORNG *vrng = VIRTIO_RNG(VAR_0); VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0); timer_del(vrng->rate_limit_timer); timer_free(vrng->rate_limit_timer); unregister_savevm(VAR_0, "virtio-rng", vrng); virtio_cleanup(vdev); return 0; }