Il 21/11/2013 15:37, Peter Lieven ha scritto:
> -        max_cpus = qemu_opt_get_number(opts, "maxcpus", 0);
> +        if (cpus != sockets * cores * threads) {
> +            fprintf(stderr, "Illegal CPU layout: %d cpus with %d sockets,"
> +                            " %d cores per socket and %d threads per core"
> +                            " (cpus != sockets * cores * threads)\n",
> +                            cpus, sockets, cores, threads);
> +            exit(1);
> +        }

Should max_cpus be checked instead if non-zero?

I see where you come from, but I think the potential for this patch to
break some working configuration (for some definition of working) is too
high.  Can you split out the fixes to the "fill in the blanks" logic?

Paolo

Reply via email to