From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUukV-00024b-7H for qemu-devel@nongnu.org; Wed, 24 Apr 2013 04:08:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUukT-00065X-NL for qemu-devel@nongnu.org; Wed, 24 Apr 2013 04:08:19 -0400 Received: from greensocs.com ([87.106.252.221]:42134 helo=s15328186.onlinehome-server.info) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUukT-00065M-GN for qemu-devel@nongnu.org; Wed, 24 Apr 2013 04:08:17 -0400 From: fred.konrad@greensocs.com Date: Wed, 24 Apr 2013 10:07:53 +0200 Message-Id: <1366790881-3026-1-git-send-email-fred.konrad@greensocs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH RESEND v4 0/8] virtio-rng refactoring. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, aliguori@us.ibm.com Cc: cornelia.huck@de.ibm.com, peter.maydell@linaro.org, mark.burton@greensocs.com, fred.konrad@greensocs.com From: KONRAD Frederic Tested-by: Cornelia Huck Acked-by: Amit Shah 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 ext= end 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-de= vice 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" =3D> "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(-) --=20 1.7.11.7