fe704809b9
virtio-rng: move qdev properties into virtio-rng.c
...
As only one place in virtio-rng.c uses DEFINE_VIRTIO_RNG_PROPERTIES,
there is no need to expose it. Inline it into virtio-rng.c to avoid
wrongly use.
Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com >
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org >
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com >
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
2015-06-10 18:15:34 +02:00
3e96b2db08
virtio-rng: use standard-headers
...
Drop duplicated code.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com >
2015-02-26 13:04:04 +01:00
a8d57dfb28
virtio-rng: Convert to QOM realize
...
Signed-off-by: Andreas Färber <afaerber@suse.de >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-12-09 21:46:49 +01:00
611aa333b4
virtio-rng: cleanup: use QOM casts.
...
As the virtio-rng-pci, virtio-rng-s390 and virtio-rng-ccw are
switched to the new API, we can use QOM casts.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Reviewed-by: Andreas Färber <afaerber@suse.de >
Reviewed-by: Andreas Färber <afaerber@suse.de >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Acked-by: Amit Shah <amit.shah@redhat.com >
Message-id: 1366790881-3026-9-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-24 11:50:20 -05:00
65f3b678f5
virtio-rng: cleanup: remove qdev field.
...
The qdev field is no longer needed, just drop it.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Acked-by: Amit Shah <amit.shah@redhat.com >
Message-id: 1366790881-3026-8-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-24 11:50:19 -05:00
6eac8aec02
virtio-rng: add virtio-rng device.
...
Create virtio-rng-device which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Acked-by: Amit Shah <amit.shah@redhat.com >
Message-id: 1366790881-3026-3-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-24 11:50:19 -05:00
af1a8ad646
virtio-rng: don't use pointer for configuration.
...
The configuration field must not be a pointer as it will be used for
virtio-rng properties. So *conf is replaced by conf.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Acked-by: Amit Shah <amit.shah@redhat.com >
Message-id: 1366790881-3026-2-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-24 11:50:19 -05:00
dccfcd0e5f
sysemu: avoid proliferation of include/ subdirectories
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-15 18:19:25 +02:00
0d09e41a51
hw: move headers to include/
...
Many of these should be cleaned up with proper qdev-/QOM-ification.
Right now there are many catch-all headers in include/hw/ARCH depending
on cpu.h, and this makes it necessary to compile these files per-target.
However, fixing this does not belong in these patches.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:10 +02:00