mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: validate: Remove impossible validation checks
All supported qemu versions now work with blockdev. 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:
parent
1d53e96aad
commit
7f70cedc94
@ -707,13 +707,6 @@ qemuValidateDomainDefNvram(const virDomainDef *def,
|
||||
if (!src)
|
||||
return 0;
|
||||
|
||||
if (def->os.loader->newStyleNVRAM &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_BLOCKDEV)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
|
||||
_("modern nvram specification is not supported by this qemu"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
switch (src->type) {
|
||||
case VIR_STORAGE_TYPE_FILE:
|
||||
case VIR_STORAGE_TYPE_BLOCK:
|
||||
@ -3315,13 +3308,6 @@ qemuValidateDomainDeviceDefDiskTransient(const virDomainDiskDef *disk,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_BLOCKDEV)) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("transient disk not supported by this QEMU binary (%s)"),
|
||||
disk->dst);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (disk->transientShareBacking == VIR_TRISTATE_BOOL_YES) {
|
||||
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_SET_ACTION) &&
|
||||
!qemuProcessRebootAllowed(def)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user