aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio-balloon.h
diff options
context:
space:
mode:
authorKONRAD Frederic <fred.konrad@greensocs.com>2013-03-27 10:49:10 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2013-03-28 12:57:41 -0500
commit1ab461b534b34838d1b21c056ab37413f54fefa6 (patch)
treead3079dc214f75da41b8f1b24f1d9da66ac2af5d /hw/virtio-balloon.h
parentfde245ca7ea790495db370cd260259595dbdf874 (diff)
virtio-balloon: add the virtio-balloon device.
Create virtio-balloon which extends virtio-device, so it can be connected on virtio-bus. 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-2-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio-balloon.h')
-rw-r--r--hw/virtio-balloon.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/virtio-balloon.h b/hw/virtio-balloon.h
index b0070421ca..139eac309e 100644
--- a/hw/virtio-balloon.h
+++ b/hw/virtio-balloon.h
@@ -18,6 +18,10 @@
#include "hw/virtio.h"
#include "hw/pci/pci.h"
+#define TYPE_VIRTIO_BALLOON "virtio-balloon"
+#define VIRTIO_BALLOON(obj) \
+ OBJECT_CHECK(VirtIOBalloon, (obj), TYPE_VIRTIO_BALLOON)
+
/* from Linux's linux/virtio_balloon.h */
/* The ID for virtio_balloon */