aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2009-06-21 19:50:40 +0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-24 09:09:15 -0500
commitff24bd589c657ad82ae0f151c4906f120a91f6f3 (patch)
tree137df1a224d2de18b86bbdbb1bbc3311dcddb35a /hw/virtio.h
parentaba800a3ffdffd9484d458344bfea8886e9062d2 (diff)
downloadqemu-ff24bd589c657ad82ae0f151c4906f120a91f6f3.zip
qemu-ff24bd589c657ad82ae0f151c4906f120a91f6f3.tar.gz
qemu-ff24bd589c657ad82ae0f151c4906f120a91f6f3.tar.bz2
qemu/virtio: virtio save/load bindings
Implement bindings for virtio save/load. Use them in virtio pci. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio.h')
-rw-r--r--hw/virtio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/virtio.h b/hw/virtio.h
index e1b31d0..aa55677 100644
--- a/hw/virtio.h
+++ b/hw/virtio.h
@@ -76,6 +76,10 @@ typedef struct VirtQueueElement
typedef struct {
void (*notify)(void * opaque, uint16_t vector);
+ void (*save_config)(void * opaque, QEMUFile *f);
+ void (*save_queue)(void * opaque, int n, QEMUFile *f);
+ int (*load_config)(void * opaque, QEMUFile *f);
+ int (*load_queue)(void * opaque, int n, QEMUFile *f);
} VirtIOBindings;
#define VIRTIO_PCI_QUEUE_MAX 16