diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2009-06-21 19:50:40 +0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-24 09:09:15 -0500 |
commit | ff24bd589c657ad82ae0f151c4906f120a91f6f3 (patch) | |
tree | 137df1a224d2de18b86bbdbb1bbc3311dcddb35a /hw/virtio.h | |
parent | aba800a3ffdffd9484d458344bfea8886e9062d2 (diff) |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/virtio.h b/hw/virtio.h index e1b31d0d23..aa556778e6 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 |