diff options
author | KONRAD Frederic <fred.konrad@greensocs.com> | 2013-03-27 10:49:12 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-03-28 12:57:41 -0500 |
commit | 30bff6a0f1d12742475a980708cfa82be56a881f (patch) | |
tree | 72f8c9c8e752e7cac231512f2adb54f13b3ea3a8 /hw/s390x/virtio-ccw.h | |
parent | e378e88dfc2dec2a60a856dd478a4edfbc88efd0 (diff) | |
download | qemu-30bff6a0f1d12742475a980708cfa82be56a881f.zip qemu-30bff6a0f1d12742475a980708cfa82be56a881f.tar.gz qemu-30bff6a0f1d12742475a980708cfa82be56a881f.tar.bz2 |
virtio-balloon-ccw: switch to the new API.
Here the virtio-balloon-ccw is modified for the new API. The device
virtio-balloon-ccw extends virtio-ccw-device as before. It creates and
connects a virtio-balloon during the init. The properties are not modified.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Message-id: 1364377755-15508-4-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/s390x/virtio-ccw.h')
-rw-r--r-- | hw/s390x/virtio-ccw.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/s390x/virtio-ccw.h b/hw/s390x/virtio-ccw.h index d9f7399..d580510 100644 --- a/hw/s390x/virtio-ccw.h +++ b/hw/s390x/virtio-ccw.h @@ -16,6 +16,7 @@ #include <hw/virtio-net.h> #include <hw/virtio-serial.h> #include <hw/virtio-scsi.h> +#include "hw/virtio-balloon.h" #include <hw/virtio-rng.h> #include <hw/virtio-bus.h> @@ -115,6 +116,16 @@ typedef struct VirtIOBlkCcw { VirtIOBlkConf blk; } VirtIOBlkCcw; +/* virtio-balloon-ccw */ + +#define TYPE_VIRTIO_BALLOON_CCW "virtio-balloon-ccw" +#define VIRTIO_BALLOON_CCW(obj) \ + OBJECT_CHECK(VirtIOBalloonCcw, (obj), TYPE_VIRTIO_BALLOON_CCW) + +typedef struct VirtIOBalloonCcw { + VirtioCcwDevice parent_obj; + VirtIOBalloon vdev; +} VirtIOBalloonCcw; VirtualCssBus *virtual_css_bus_init(void); void virtio_ccw_device_update_status(SubchDev *sch); |