57d3e1b3f5
virtio_rng: replace custom backend API with UserCreatable.complete() callback
...
in addition fix default backend leak by releasing it if its
initialization failed.
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com >
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com >
2014-01-28 12:47:11 -05:00
306ec6c3ce
virtio: Convert exit to unrealize
...
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
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
af7671fdc5
virtio-rng: QOM realize preparations
...
Rename qdev -> dev because that's what realize's argument is called by
convention. No need to keep more "qdev" around than necessary.
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
7bb6edb0e3
virtio-rng: switch exit callback to VirtioDeviceClass
...
This ensures hot-unplug is handled properly by the proxy, and avoids
leaking bus_name which is freed by virtio_device_exit.
Cc: qemu-stable@nongnu.org
Acked-by: Andreas Faerber <afaerber@suse.de >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-12-09 21:46:48 +01:00
d44bb8604e
virtio-rng: add check of period
...
If period is assigned to 0, limit timer will expire immediately.
It causes a qemu warning:
"main-loop: WARNING: I/O thread spun for 1000 iterations"
This limit is meaningless. This patch forbids to assign 0 to period.
Reviewed-by: Amit Shah <amit.shah@redhat.com >
Signed-off-by: Amos Kong <akong@redhat.com >
Message-id: 1385031203-23790-1-git-send-email-akong@redhat.com
Signed-off-by: Anthony Liguori <aliguori@amazon.com >
2013-11-21 07:55:26 -08:00
bc72ad6754
aio / timers: Switch entire codebase to the new timer API
...
This is an autogenerated patch using scripts/switch-timer-api.
Switch the entire code base to using the new timer API.
Note this patch may introduce some line length issues.
Signed-off-by: Alex Bligh <alex@alex.org.uk >
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2013-08-22 19:14:24 +02:00
125ee0ed9c
devices: Associate devices to their logical category
...
The category will be used to sort the devices displayed in
the command line help.
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com >
Message-id: 1375107465-25767-4-git-send-email-marcel.a@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-07-29 10:37:09 -05:00
6a1a8cc7af
virtio: cleanup: init and exit function.
...
This clean the init and the exit functions and rename virtio_common_cleanup
to virtio_cleanup.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Message-id: 1366791683-5350-7-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-24 11:50:21 -05:00
181103cd52
virtio: remove the function pointer.
...
This remove the function pointer in VirtIODevice, and use only
VirtioDeviceClass function pointer.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Message-id: 1366791683-5350-5-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-24 11:50:20 -05: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
46a5a89d65
virtio-rng: cleanup: init and exit functions.
...
This remove old init and exit function as they are no longer needed.
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-7-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
49ab747f66
hw: move target-independent files to subdirectories
...
This patch tackles all files that are compiled once, moving
them to subdirectories of hw/.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:12 +02:00