mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 12:41:29 +00:00
qemu: command: Remove qemuBuildHasMasterKey
The thin wrapper is not necessary. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
50192e990f
commit
d3f4fc8684
@ -175,19 +175,6 @@ VIR_ENUM_IMPL(qemuNumaPolicy, VIR_DOMAIN_NUMATUNE_MEM_LAST,
|
|||||||
"interleave");
|
"interleave");
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* qemuBuildHasMasterKey:
|
|
||||||
* @qemuCaps: QEMU binary capabilities
|
|
||||||
*
|
|
||||||
* Return true if this binary supports the secret -object, false otherwise.
|
|
||||||
*/
|
|
||||||
static bool
|
|
||||||
qemuBuildHasMasterKey(virQEMUCapsPtr qemuCaps)
|
|
||||||
{
|
|
||||||
return virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_SECRET);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* qemuBuildMasterKeyCommandLine:
|
* qemuBuildMasterKeyCommandLine:
|
||||||
* @cmd: the command to modify
|
* @cmd: the command to modify
|
||||||
@ -211,7 +198,7 @@ qemuBuildMasterKeyCommandLine(virCommandPtr cmd,
|
|||||||
* means the domain won't be able to use a secret master key and is
|
* means the domain won't be able to use a secret master key and is
|
||||||
* not a failure.
|
* not a failure.
|
||||||
*/
|
*/
|
||||||
if (!qemuBuildHasMasterKey(priv->qemuCaps)) {
|
if (!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_OBJECT_SECRET)) {
|
||||||
VIR_INFO("secret object is not supported by this QEMU binary");
|
VIR_INFO("secret object is not supported by this QEMU binary");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user