[PATCH v4 02/13] qemuBuildPflashBlockdevCommandLine: Take virDomainObj instead of private data

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

 



Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 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 52e4ef03cd..7dc09fc101 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -10122,8 +10122,10 @@ qemuBuildPflashBlockdevOne(virCommand *cmd,

 static int
 qemuBuildPflashBlockdevCommandLine(virCommand *cmd,
-                                   qemuDomainObjPrivate *priv)
+                                   virDomainObj *vm)
 {
+    qemuDomainObjPrivate *priv = vm->privateData;
+
     if (!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_BLOCKDEV))
         return 0;

@@ -10504,7 +10506,7 @@ qemuBuildCommandLine(virDomainObj *vm,
     if (qemuBuildManagedPRCommandLine(cmd, def, priv) < 0)
         return NULL;

-    if (qemuBuildPflashBlockdevCommandLine(cmd, priv) < 0)
+    if (qemuBuildPflashBlockdevCommandLine(cmd, vm) < 0)
         return NULL;

     /* QEMU 1.2 and later have a binary flag -enable-fips that must be
-- 
2.35.3




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux