qemu/target/i386/whpx
Zhao Liu db5a06b3a2 target/i386/WHPX: Fix error message when fail to set ProcessorCount
003f230e37 ("machine: Tweak the order of topology members in struct
CpuTopology") changes the meaning of MachineState.smp.cores from "the
number of cores in one package" to "the number of cores in one die"
and doesn't fix other uses of MachineState.smp.cores. And because of
the introduction of cluster, now smp.cores just means "the number of
cores in one cluster". This clearly does not fit the semantics here.

And before this error message, WHvSetPartitionProperty() is called to
set prop.ProcessorCount.

So the error message should show the prop.ProcessorCount other than
"cores per cluster" or "cores per package".

Cc: Sunil Muthuswamy <sunilmut@microsoft.com>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230529124331.412822-1-zhao1.liu@linux.intel.com>
[PMD: Use '%u' format for ProcessorCount]
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2023-06-28 14:27:59 +02:00
..
meson.build meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
whpx-accel-ops.c accel: Remove unused hThread variable on TCG/WHPX 2023-06-28 13:55:35 +02:00
whpx-accel-ops.h Clean up header guards that don't match their file name 2022-05-11 16:49:06 +02:00
whpx-all.c target/i386/WHPX: Fix error message when fail to set ProcessorCount 2023-06-28 14:27:59 +02:00
whpx-apic.c *: Add missing includes of qemu/error-report.h 2023-03-22 15:06:57 +00:00
whpx-internal.h accel: Re-enable WHPX cross-build on case sensitive filesystems 2023-06-28 13:55:35 +02:00