]> git.proxmox.com Git - qemu.git/blobdiff - qemu-char.c
vhost: fix miration during device start
[qemu.git] / qemu-char.c
index 87628ea33f100ec48f48fe1c7b558b3700386635..9b69d928ef40cdd13b6725935868d1a95118cbac 100644 (file)
@@ -351,12 +351,7 @@ static int mux_proc_byte(CharDriverState *chr, MuxDriver *d, int ch)
                  break;
             }
         case 's':
-            {
-                DriveInfo *dinfo;
-                QTAILQ_FOREACH(dinfo, &drives, next) {
-                    bdrv_commit(dinfo->bdrv);
-                }
-            }
+            bdrv_commit_all();
             break;
         case 'b':
             qemu_chr_event(chr, CHR_EVENT_BREAK);