qemuBuildPflashBlockdevCommandLine: Take virDomainObj instead of private data

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Tested-by: Rohit Kumar <rohit.kumar3@nutanix.com>
This commit is contained in:
Peter Krempa 2022-05-18 14:31:17 +02:00
parent f23b0ac13e
commit c3cf2a2b60

View File

@ -10144,8 +10144,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;
@ -10526,7 +10528,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