|
@@ -337,7 +337,7 @@ static const struct SMPTestData data_with_dies_invalid[] = {
|
|
|
},
|
|
|
};
|
|
|
|
|
|
-static char *smp_config_to_string(SMPConfiguration *config)
|
|
|
+static char *smp_config_to_string(const SMPConfiguration *config)
|
|
|
{
|
|
|
return g_strdup_printf(
|
|
|
"(SMPConfiguration) {\n"
|
|
@@ -371,7 +371,7 @@ static char *cpu_topology_to_string(const CpuTopology *topo)
|
|
|
topo->cores, topo->threads, topo->max_cpus);
|
|
|
}
|
|
|
|
|
|
-static void check_parse(MachineState *ms, SMPConfiguration *config,
|
|
|
+static void check_parse(MachineState *ms, const SMPConfiguration *config,
|
|
|
const CpuTopology *expect_topo, const char *expect_err,
|
|
|
bool is_valid)
|
|
|
{
|
|
@@ -380,8 +380,8 @@ static void check_parse(MachineState *ms, SMPConfiguration *config,
|
|
|
g_autofree char *output_topo_str = NULL;
|
|
|
Error *err = NULL;
|
|
|
|
|
|
- /* call the generic parser smp_parse() */
|
|
|
- smp_parse(ms, config, &err);
|
|
|
+ /* call the generic parser */
|
|
|
+ machine_parse_smp_config(ms, config, &err);
|
|
|
|
|
|
output_topo_str = cpu_topology_to_string(&ms->smp);
|
|
|
|