Patchwork [v2,13/15] virtio-balloon: move init function to virtio-balloon.h

login
register
mail settings
Submitter Paolo Bonzini
Date Jan. 2, 2012, 5:59 p.m.
Message ID <1325527166-23898-14-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/133897/
State New
Headers show

Comments

Paolo Bonzini - Jan. 2, 2012, 5:59 p.m.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 hw/virtio-balloon.h |    3 +++
 hw/virtio-pci.h     |    1 +
 hw/virtio.h         |    2 --
 3 files changed, 4 insertions(+), 2 deletions(-)

Patch

diff --git a/hw/virtio-balloon.h b/hw/virtio-balloon.h
index 73300dd..cde2e67 100644
--- a/hw/virtio-balloon.h
+++ b/hw/virtio-balloon.h
@@ -52,4 +52,7 @@  typedef struct VirtIOBalloonStat {
     uint64_t val;
 } QEMU_PACKED VirtIOBalloonStat;
 
+VirtIODevice *virtio_balloon_init(DeviceState *dev);
+void virtio_balloon_exit(VirtIODevice *vdev);
+
 #endif
diff --git a/hw/virtio-pci.h b/hw/virtio-pci.h
index 0a9034a..531b883 100644
--- a/hw/virtio-pci.h
+++ b/hw/virtio-pci.h
@@ -18,6 +18,7 @@ 
 #include "virtio-blk.h"
 #include "virtio-net.h"
 #include "virtio-serial.h"
+#include "virtio-balloon.h"
 #include "9pfs/virtio-9p-device.h"
 
 /* Performance improves when virtqueue kick processing is decoupled from the
diff --git a/hw/virtio.h b/hw/virtio.h
index 3cf2e25..6943368 100644
--- a/hw/virtio.h
+++ b/hw/virtio.h
@@ -193,14 +193,12 @@  void virtio_bind_device(VirtIODevice *vdev, const VirtIOBindings *binding,
 /* Base devices.  */
 typedef struct VirtIOBlkConf VirtIOBlkConf;
 VirtIODevice *virtio_blk_init(DeviceState *dev, VirtIOBlkConf *blk);
-VirtIODevice *virtio_balloon_init(DeviceState *dev);
 #ifdef CONFIG_VIRTFS
 VirtIODevice *virtio_9p_init(DeviceState *dev, V9fsConf *conf);
 #endif
 
 
 void virtio_blk_exit(VirtIODevice *vdev);
-void virtio_balloon_exit(VirtIODevice *vdev);
 
 #define DEFINE_VIRTIO_COMMON_FEATURES(_state, _field) \
 	DEFINE_PROP_BIT("indirect_desc", _state, _field, \