From 69f2f632994c8f8b51f0d0e4be0f674054619654 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Fri, 5 Nov 2021 09:33:45 +0100 Subject: [PATCH] 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 Tested-by: Kashyap Chamarthy Reviewed-by: Peter Krempa --- src/qemu/qemu_command.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 80adf5b716..c15fd360a2 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -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 -- 2.47.2