In the shim case, the number of CPUs should be solely controlled by the
guest configuration file. Make sure the command line options are fully
(and not just partially) ignored.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
### maxcpus (x86)
> `= <integer>`
+Specify the maximum number of CPUs that should be brought up.
+
+This option is ignored in **pv-shim** mode.
+
### max\_cstate (x86)
> `= <integer>`
Disable SMP support. No secondary processors will be booted.
Defaults to booting secondary processors.
+This option is ignored in **pv-shim** mode.
+
### nr\_irqs (x86)
> `= <integer>`
if ( smp_found_config )
get_smp_config();
+ /*
+ * In the shim case, the number of CPUs should be solely controlled by the
+ * guest configuration file.
+ */
+ if ( pv_shim )
+ {
+ opt_nosmp = false;
+ max_cpus = 0;
+ }
if ( opt_nosmp )
{
max_cpus = 0;