Ian Molton wrote: >>> +static void virtio_rng_save(QEMUFile *f, void *opaque) >>> +{ >>> + VirtIORng *s = opaque; >>> + >>> + virtio_save(&s->vdev, f); >>> +} >>> + >>> +static int virtio_rng_load(QEMUFile *f, void *opaque, int version_id) >>> +{ >>> + VirtIORng *s = opaque; >>> + >>> + if (version_id != 1) >>> + return -EINVAL; >>> + >>> + virtio_load(&s->vdev, f); >>> + return 0; >>> +} >>> >>> >> This doesn't look correct to me. There is absolutely no state >> maintained by the virtio-rng backend? I find that hard to believe. > > What state needs maintaining? when it runs out of entropy, it simply > reconnects. Unless I misunderstood what those functions are for...
ping?