From: KONRAD Frederic <fred.kon...@greensocs.com> This is the next part of virtio-refactoring.
Basically it creates virtio-balloon device which extends virtio-device. Then a virtio-balloon can be connected on a virtio-bus. virtio-balloon-pci, virtio-balloon-ccw are created too, they extend respectively virtio-pci, virtio-ccw-device and have a virtio-balloon. You can checkout my branch here: git://project.greensocs.com/qemu-virtio.git virtio-balloon-v3 Note that it is nearly the same series as virtio-blk and virtio-scsi refactoring. I made basic tests (with linux guests) on: * qemu-system-i386 Changes v2 -> v3: * Added CCW device. * Rebased. Thanks, Fred KONRAD Frederic (6): virtio-balloon: add the virtio-balloon device. virtio-balloon-pci: switch to the new API. virtio-balloon-ccw: switch to the new API. virtio-balloon: cleanup: init and exit function. virtio-balloon: cleanup: QOM casts. virtio-balloon: cleanup: remove qdev field. hw/s390x/virtio-ccw.c | 25 +++++++----- hw/s390x/virtio-ccw.h | 11 +++++ hw/virtio-balloon.c | 110 +++++++++++++++++++++++++++++++------------------ hw/virtio-balloon.h | 7 +++- hw/virtio-pci.c | 111 +++++++++++++++++++++++++------------------------- hw/virtio-pci.h | 14 +++++++ 6 files changed, 170 insertions(+), 108 deletions(-) -- 1.7.11.7