hw/i386: Expand the range of CPU topologies between smp and maxcpus
PATCH 1/1 hw/i386: Expand the range of CPU topologies between smp and maxcpus
Change the criteria for the initial CPU topology and maxcpus, user can have more settings
Signed-off-by Dongli Cao <[email protected]>
--- hw/i386/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/pc.c +1 -1
@@ -751,7 +751,7 @@ void pc_smp_parse(MachineState *ms, QemuOpts *opts)exit (1 ); } -if (sockets * dies * cores * threads != ms->smp.max_cpus) { +if (sockets * dies * cores * threads > ms->smp.max_cpus) { error_report("Invalid CPU topology deprecated: " "sockets (%u) * dies (%u) * cores (%u) * threads (%u) " "!= maxcpus (%u)",
Signature · 7 lines
1.8.3.1 [email protected]