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 | ab8b1ed19df412dfd61f337dbe6a89721f3d15d0 (patch) | |
tree | 137df1a224d2de18b86bbdbb1bbc3311dcddb35a /hw/virtio.h | |
parent | 73998969fd6b8eb9a14f60c38ca561fe0cd5fe77 (diff) | |
download | qemu-ab8b1ed19df412dfd61f337dbe6a89721f3d15d0.tar.gz qemu-ab8b1ed19df412dfd61f337dbe6a89721f3d15d0.tar.bz2 qemu-ab8b1ed19df412dfd61f337dbe6a89721f3d15d0.zip |
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 |