virtio-rng.c (71358470eec668f5dc53def25e585ce250cea9bf) virtio-rng.c (9d5b731dd2d64deb3bc798ef4e3c08603d54ae02)
1/*
2 * A virtio device implementing a hardware random number generator.
3 *
4 * Copyright 2012 Red Hat, Inc.
5 * Copyright 2012 Amit Shah <amit.shah@redhat.com>
6 *
7 * This work is licensed under the terms of the GNU GPL, version 2 or
8 * (at your option) any later version. See the COPYING file in the

--- 90 unchanged lines hidden (view full) ---

99}
100
101static void handle_input(VirtIODevice *vdev, VirtQueue *vq)
102{
103 VirtIORNG *vrng = VIRTIO_RNG(vdev);
104 virtio_rng_process(vrng);
105}
106
1/*
2 * A virtio device implementing a hardware random number generator.
3 *
4 * Copyright 2012 Red Hat, Inc.
5 * Copyright 2012 Amit Shah <amit.shah@redhat.com>
6 *
7 * This work is licensed under the terms of the GNU GPL, version 2 or
8 * (at your option) any later version. See the COPYING file in the

--- 90 unchanged lines hidden (view full) ---

99}
100
101static void handle_input(VirtIODevice *vdev, VirtQueue *vq)
102{
103 VirtIORNG *vrng = VIRTIO_RNG(vdev);
104 virtio_rng_process(vrng);
105}
106
107static uint64_t get_features(VirtIODevice *vdev, uint64_t f)
107static uint64_t get_features(VirtIODevice *vdev, uint64_t f, Error **errp)
108{
109 return f;
110}
111
112static void virtio_rng_save(QEMUFile *f, void *opaque)
113{
114 VirtIODevice *vdev = opaque;
115

--- 152 unchanged lines hidden ---
108{
109 return f;
110}
111
112static void virtio_rng_save(QEMUFile *f, void *opaque)
113{
114 VirtIODevice *vdev = opaque;
115

--- 152 unchanged lines hidden ---