qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH RFC 3/8] virtio-blk: migrate subsections


From: Greg Kurz
Subject: [Qemu-devel] [PATCH RFC 3/8] virtio-blk: migrate subsections
Date: Wed, 14 May 2014 17:41:53 +0200
User-agent: StGit/0.16

Signed-off-by: Greg Kurz <address@hidden>
---
 hw/block/virtio-blk.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c
index 8a568e5..5a0d224 100644
--- a/hw/block/virtio-blk.c
+++ b/hw/block/virtio-blk.c
@@ -600,6 +600,8 @@ static void virtio_blk_save(QEMUFile *f, void *opaque)
         req = req->next;
     }
     qemu_put_sbyte(f, 0);
+
+    virtio_save_subsections(vdev, f);
 }
 
 static int virtio_blk_load(QEMUFile *f, void *opaque, int version_id)
@@ -628,7 +630,7 @@ static int virtio_blk_load(QEMUFile *f, void *opaque, int 
version_id)
             req->elem.out_num, 0);
     }
 
-    return 0;
+    return virtio_load_subsections(vdev, f);
 }
 
 static void virtio_blk_resize(void *opaque)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]