Il 13/04/2012 14:42, Takayuki Konishi ha scritto:
>> > -    if (!max_cpus)
>> > +    if (qemu_opts_foreach(qemu_find_opts("smp"), smp_init_func, NULL, 1) 
>> > != 0) {
>> > +        exit(1);
>> > +    }
>> > +    if (!max_cpus) {
>> >          max_cpus = smp_cpus;
>> > -
>> > +    }
> Isn't this 'if' block redundant? smp_init_func sets max_cpus = smp_cpus if 
> !max_cpus.

smp_init_func is only run if -smp is given on the command line, just
like smp_parse before this patch.

Paolo


Reply via email to