mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
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:
parent
f23b0ac13e
commit
c3cf2a2b60
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user