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

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

This is the last part of the refactoring.

It may require some changes, especially for virtio-ccw part (step 5).

The step 6 replaces the function pointers contained in VirtIODevice structure by
the function pointers contained in VirtioDeviceClass.

The step 7 removes virtiobindings.

I tested the changes on i386 only with virtio-blk on linux guest.

You can test here (it's on top of virtio-rng-v3 I sent earlier):
git://project.greensocs.com/qemu-virtio.git virtio-cleanup

Changes v2 -> v3:
    * Fix PCI hot-unplug.
    * Add CCW devices.
    * A lot of rebasing.

Thanks,
Fred

KONRAD Frederic (8):
  virtio-bus: add new functions.
  virtio-bus: make virtio_x_bus_new static.
  virtio-pci: cleanup.
  s390-virtio-bus: cleanup.
  virtio-ccw: cleanup.
  virtio: remove the function pointer.
  virtio: remove virtiobindings.
  virtio: cleanup: init and exit function.

 hw/9pfs/virtio-9p-device.c      |   2 -
 hw/block/dataplane/virtio-blk.c |  15 +++---
 hw/block/virtio-blk.c           |   9 +---
 hw/char/virtio-serial-bus.c     |   8 +--
 hw/net/vhost_net.c              |  17 +++---
 hw/net/virtio-net.c             |  11 +---
 hw/s390x/s390-virtio-bus.c      |  51 +++++++-----------
 hw/s390x/s390-virtio-bus.h      |   2 -
 hw/s390x/virtio-ccw.c           |  55 +++++++------------
 hw/s390x/virtio-ccw.h           |   2 -
 hw/scsi/virtio-scsi.c           |   8 +--
 hw/virtio/vhost.c               |  31 ++++++-----
 hw/virtio/virtio-balloon.c      |   8 +--
 hw/virtio/virtio-bus.c          |  40 ++++++++------
 hw/virtio/virtio-pci.c          | 112 ++++++++++-----------------------------
 hw/virtio/virtio-pci.h          |   3 --
 hw/virtio/virtio-rng.c          |   4 +-
 hw/virtio/virtio.c              | 114 +++++++++++++++++++++-------------------
 include/hw/virtio/virtio-bus.h  |   9 ++--
 include/hw/virtio/virtio.h      |  49 +----------------
 20 files changed, 203 insertions(+), 347 deletions(-)

-- 
1.7.11.7

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

end of thread, other threads:[~2013-04-15 15:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-14 21:26 [Qemu-devel] [PATCH v3 0/8] virtio-refactoring cleanup fred.konrad
2013-04-14 21:26 ` [Qemu-devel] [PATCH v3 1/8] virtio-bus: add new functions fred.konrad
2013-04-14 21:26 ` [Qemu-devel] [PATCH v3 2/8] virtio-bus: make virtio_x_bus_new static fred.konrad
2013-04-14 21:26 ` [Qemu-devel] [PATCH v3 3/8] virtio-pci: cleanup fred.konrad
2013-04-14 21:26 ` [Qemu-devel] [PATCH v3 4/8] s390-virtio-bus: cleanup fred.konrad
2013-04-14 21:26 ` [Qemu-devel] [PATCH v3 5/8] virtio-ccw: cleanup fred.konrad
2013-04-15 13:38   ` Cornelia Huck
2013-04-15 14:31     ` KONRAD Frédéric
2013-04-15 15:06       ` Cornelia Huck
2013-04-14 21:26 ` [Qemu-devel] [PATCH v3 6/8] virtio: remove the function pointer fred.konrad
2013-04-14 21:26 ` [Qemu-devel] [PATCH v3 7/8] virtio: remove virtiobindings fred.konrad
2013-04-14 21:26 ` [Qemu-devel] [PATCH v3 8/8] virtio: cleanup: init and exit function fred.konrad

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).