vl: fix max_cpus check
commitc00cd99527d0d1b47a387239a7e3a8cf8ff82764
authorAndrew Jones <drjones@redhat.com>
Fri, 19 Dec 2014 02:59:46 +0000 (19 00:59 -0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 9 Jan 2015 22:41:12 +0000 (9 23:41 +0100)
tree5a8e98493bdfb3f9c481783811d5c9fb95faeb20
parent719cac1ce20c8806303793b2501aedb9edf1bca3
vl: fix max_cpus check

We should confirm max_cpus, which is >= smp_cpus, is
<= the machine's true max_cpus, not just smp_cpus.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
vl.c