]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuProcessReconnect: Don't re-instantiate pflash storage source
authorPeter Krempa <pkrempa@redhat.com>
Wed, 1 Jun 2022 12:40:19 +0000 (14:40 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 14 Jun 2022 13:53:11 +0000 (15:53 +0200)
We don't really use it besides when starting up the VM so when
reconnecting this step is totally pointless.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Tested-by: Rohit Kumar <rohit.kumar3@nutanix.com>
src/qemu/qemu_process.c

index 66c5935d7d2cc189c492ec4801eb6767d0b8ab1b..f13ca4388f3f1761ac56499b930450d659093b2e 100644 (file)
@@ -8939,10 +8939,6 @@ qemuProcessReconnect(void *opaque)
     if (qemuDomainPerfRestart(obj) < 0)
         goto error;
 
-    /* recreate the pflash storage sources */
-    if (qemuDomainInitializePflashStorageSource(obj) < 0)
-        goto error;
-
     for (i = 0; i < obj->def->ndisks; i++) {
         virDomainDiskDef *disk = obj->def->disks[i];