mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemu_command: Don't validate accelerator when building cmd line
The domain accelerator was validated in qemuValidateDomainDef() which calls virQEMUCapsIsVirtTypeSupported() which reports proper error if QEMU is not capable of KVM/TCG. There is no point in doing the validation again when building command line. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Tested-by: Kashyap Chamarthy <kchamart@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
d5643e73da
commit
69f2f63299
@ -7066,15 +7066,8 @@ qemuBuildMachineCommandLine(virCommand *cmd,
|
||||
case VIR_DOMAIN_VIRT_BHYVE:
|
||||
case VIR_DOMAIN_VIRT_VZ:
|
||||
case VIR_DOMAIN_VIRT_NONE:
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
_("the QEMU binary does not support %s"),
|
||||
virDomainVirtTypeToString(def->virtType));
|
||||
return -1;
|
||||
|
||||
case VIR_DOMAIN_VIRT_LAST:
|
||||
default:
|
||||
virReportEnumRangeError(virDomainVirtType, def->virtType);
|
||||
return -1;
|
||||
break;
|
||||
}
|
||||
|
||||
/* To avoid the collision of creating USB controllers when calling
|
||||
|
Loading…
x
Reference in New Issue
Block a user