qemu: Properly report errors from qemuDomainFixupCPUs

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Jiri Denemark 2017-11-13 16:49:47 +01:00
parent 50712e14f4
commit 6118fd9cb9

View File

@ -10227,7 +10227,7 @@ qemuDomainFixupCPUs(virDomainObjPtr vm,
virCPUDefPtr fixedCPU = NULL;
virCPUDefPtr fixedOrig = NULL;
virArch arch = vm->def->os.arch;
int ret = 0;
int ret = -1;
if (!ARCH_IS_X86(arch))
return 0;