qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH RESEND v4 0/8] virtio-rng refactoring.
@ 2013-04-24  8:07 fred.konrad
  2013-04-24  8:07 ` [Qemu-devel] [PATCH RESEND v4 1/8] virtio-rng: don't use pointer for configuration fred.konrad
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: fred.konrad @ 2013-04-24  8:07 UTC (permalink / raw)
  To: qemu-devel, aliguori
  Cc: cornelia.huck, peter.maydell, mark.burton, fred.konrad

From: KONRAD Frederic <fred.konrad@greensocs.com>

Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Amit Shah <amit.shah@redhat.com>

There are no modifications, just rebased.

This is the last backend of the refactoring (*and must be applied at last,
because it would break virtio-9p*).

Basically it creates virtio-rng-device which extends virtio-device.
Then a virtio-rng-device can be connected on a virtio-bus.
virtio-rng-pci, virtio-rng-s390, virtio-rng-ccw are created too, they extend
respectively virtio-pci, virtio-s390-device, virtio-ccw-device and have a
virtio-rng-device.

When rng option is NULL, a default rng backend is created as before. But after
this refactoring, this default-backend will be the child of virtio-rng-device
instead of virtio-rng-*.

You can checkout my branch here:

git://project.greensocs.com/qemu-virtio.git virtio-rng-v4

Note that it is nearly the same series as virtio-blk and virtio-scsi
refactoring, and is rebased on top of virtio-9p-v4 I posted before.

I made basic tests (with linux guests) on:
 * qemu-system-i386

Cornelia tested it on s390 and ccw.

Changes v3 -> v4:
    * Remove some QOM casts on opaque.
    * Fix the commit message of the last patch.
    * Rebased.
Changes v2 -> v3:
    * Added CCW device.
    * Changes name: "virtio-rng" => "virtio-rng-device".
    * Rebased.

Thanks,

Fred

KONRAD Frederic (8):
  virtio-rng: don't use pointer for configuration.
  virtio-rng: add virtio-rng device.
  virtio-rng-pci: switch to the new API.
  virtio-rng-s390: switch to the new API.
  virtio-rng-ccw: switch to the new API.
  virtio-rng: cleanup: init and exit functions.
  virtio-rng: cleanup: remove qdev field.
  virtio-rng: cleanup: use QOM casts.

 hw/s390x/s390-virtio-bus.c     |  39 ++++++-----
 hw/s390x/s390-virtio-bus.h     |  12 +++-
 hw/s390x/virtio-ccw.c          |  49 ++++++-------
 hw/s390x/virtio-ccw.h          |  12 +++-
 hw/virtio/virtio-pci.c         | 156 ++++++++++++++++-------------------------
 hw/virtio/virtio-pci.h         |  14 +++-
 hw/virtio/virtio-rng.c         | 116 +++++++++++++++++++++---------
 include/hw/virtio/virtio-rng.h |  20 ++++--
 include/hw/virtio/virtio.h     |   2 -
 9 files changed, 239 insertions(+), 181 deletions(-)

-- 
1.7.11.7

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-04-24 18:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-24  8:07 [Qemu-devel] [PATCH RESEND v4 0/8] virtio-rng refactoring fred.konrad
2013-04-24  8:07 ` [Qemu-devel] [PATCH RESEND v4 1/8] virtio-rng: don't use pointer for configuration fred.konrad
2013-04-24  8:07 ` [Qemu-devel] [PATCH RESEND v4 2/8] virtio-rng: add virtio-rng device fred.konrad
2013-04-24  8:07 ` [Qemu-devel] [PATCH RESEND v4 3/8] virtio-rng-pci: switch to the new API fred.konrad
2013-04-24  8:07 ` [Qemu-devel] [PATCH RESEND v4 4/8] virtio-rng-s390: " fred.konrad
2013-04-24  8:07 ` [Qemu-devel] [PATCH RESEND v4 5/8] virtio-rng-ccw: " fred.konrad
2013-04-24  8:07 ` [Qemu-devel] [PATCH RESEND v4 6/8] virtio-rng: cleanup: init and exit functions fred.konrad
2013-04-24  8:08 ` [Qemu-devel] [PATCH RESEND v4 7/8] virtio-rng: cleanup: remove qdev field fred.konrad
2013-04-24  8:08 ` [Qemu-devel] [PATCH RESEND v4 8/8] virtio-rng: cleanup: use QOM casts fred.konrad
2013-04-24 18:24 ` [Qemu-devel] [PATCH RESEND v4 0/8] virtio-rng refactoring Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).