qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/7] virtio-net refactoring.
@ 2013-04-11 14:29 fred.konrad
  2013-04-11 14:29 ` [Qemu-devel] [PATCH v3 1/7] virtio: add two functions to VirtioDeviceClass fred.konrad
                   ` (8 more replies)
  0 siblings, 9 replies; 16+ messages in thread
From: fred.konrad @ 2013-04-11 14:29 UTC (permalink / raw)
  To: aliguori, qemu-devel
  Cc: cornelia.huck, peter.maydell, mark.burton, fred.konrad

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

This is the next part of virtio-refactoring.

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

You can checkout my branch here:

git://project.greensocs.com/qemu-virtio.git virtio-net-v3

Note: it applies on top of virtio-9p-v3.

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

Changes v2 -> v3:
    * Added property macro.
    * Rebased on virtio-net-ccw.
    * Renamed device "virtio-net" => "virtio-net-device".
    * Rebased.

Thanks,

Fred

KONRAD Frederic (7):
  virtio: add two functions to VirtioDeviceClass.
  virtio-net: add the virtio-net device.
  virtio-net-pci: switch to the new API.
  virtio-net-s390: switch to the new API.
  virtio-net-ccw: switch to the new API.
  virtio-net: cleanup: use QOM cast.
  virtio-net: cleanup: init and exit function.

 hw/net/virtio-net.c            | 244 ++++++++++++++++++++++++++---------------
 hw/s390x/s390-virtio-bus.c     |  33 +++---
 hw/s390x/s390-virtio-bus.h     |  13 ++-
 hw/s390x/virtio-ccw.c          |  35 +++---
 hw/s390x/virtio-ccw.h          |  13 ++-
 hw/virtio/virtio-pci.c         | 116 ++++++++++----------
 hw/virtio/virtio-pci.h         |  15 ++-
 include/hw/virtio/virtio-net.h |  15 ++-
 include/hw/virtio/virtio.h     |  12 ++
 9 files changed, 311 insertions(+), 185 deletions(-)

-- 
1.8.1.4

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

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

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 14:29 [Qemu-devel] [PATCH v3 0/7] virtio-net refactoring fred.konrad
2013-04-11 14:29 ` [Qemu-devel] [PATCH v3 1/7] virtio: add two functions to VirtioDeviceClass fred.konrad
2013-04-11 14:29 ` [Qemu-devel] [PATCH v3 2/7] virtio-net: add the virtio-net device fred.konrad
2013-04-11 14:29 ` [Qemu-devel] [PATCH v3 3/7] virtio-net-pci: switch to the new API fred.konrad
2013-04-11 14:29 ` [Qemu-devel] [PATCH v3 4/7] virtio-net-s390: " fred.konrad
2013-04-11 14:30 ` [Qemu-devel] [PATCH v3 5/7] virtio-net-ccw: " fred.konrad
2013-04-11 14:30 ` [Qemu-devel] [PATCH v3 6/7] virtio-net: cleanup: use QOM cast fred.konrad
2013-04-18  8:41   ` Michael S. Tsirkin
2013-04-18 11:34     ` KONRAD Frédéric
2013-04-18 11:01       ` Michael S. Tsirkin
2013-04-18 12:52       ` Anthony Liguori
2013-04-18 12:50     ` Anthony Liguori
2013-04-18 13:28       ` Paolo Bonzini
2013-04-11 14:30 ` [Qemu-devel] [PATCH v3 7/7] virtio-net: cleanup: init and exit function fred.konrad
2013-04-15  9:02 ` [Qemu-devel] [PATCH v3 0/7] virtio-net refactoring Cornelia Huck
2013-04-22 18:37 ` 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).