qemu: Always assume support for QEMU_CAPS_QCOW2_LUKS

luks-encrypted QCOW2 files were introduced in qemu-2.6 unconditionally.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2022-07-15 16:49:59 +02:00
parent 8eae01ba28
commit b17e669c84

View File

@ -4988,14 +4988,6 @@ qemuDomainValidateStorageSource(virStorageSource *src,
src->encryption->engine);
return -1;
}
if (src->format == VIR_STORAGE_FILE_QCOW2 &&
src->encryption->format == VIR_STORAGE_ENCRYPTION_FORMAT_LUKS &&
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_QCOW2_LUKS)) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("LUKS encrypted QCOW2 images are not supported by this QEMU"));
return -1;
}
}
if (src->tlsHostname) {