From: Peter Krempa Date: Wed, 1 Jun 2022 12:40:19 +0000 (+0200) Subject: qemuProcessReconnect: Don't re-instantiate pflash storage source X-Git-Tag: v8.5.0-rc1~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9945c24259ca87946579177b09828904592ed828;p=thirdparty%2Flibvirt.git qemuProcessReconnect: Don't re-instantiate pflash storage source 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 Reviewed-by: Ján Tomko Tested-by: Rohit Kumar --- diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 66c5935d7d..f13ca4388f 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -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];