The frontend device needs to access the blocks directly so it cares
about the effective nodename.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_command.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 40de712c61..d40d3a4e13 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -7032,9 +7032,11 @@ qemuBuildMachineCommandLine(virCommand *cmd,
if (virDomainDefHasOldStyleUEFI(def)) {
if (priv->pflash0)
- virBufferAsprintf(&buf, ",pflash0=%s",
priv->pflash0->nodeformat);
+ virBufferAsprintf(&buf, ",pflash0=%s",
+
qemuBlockStorageSourceGetEffectiveNodename(priv->pflash0));
if (def->os.loader->nvram)
- virBufferAsprintf(&buf, ",pflash1=%s",
def->os.loader->nvram->nodeformat);
+ virBufferAsprintf(&buf, ",pflash1=%s",
+
qemuBlockStorageSourceGetEffectiveNodename(def->os.loader->nvram));
}
if (virDomainNumaHasHMAT(def->numa))
--
2.41.0