diff options
| author | Zhao Liu <zhao1.liu@intel.com> | 2024-03-09 00:01:36 +0800 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-03-09 19:17:01 +0100 |
| commit | 72d346f3b8504804df047166164af52af4f95708 (patch) | |
| tree | a92ed98276540a050ec4742ba5c5d6fb210b3539 /hw/core/machine-smp.c | |
| parent | 56fa4f346a32b41d2fccd24c86cbf3390fc510e5 (diff) | |
| download | focaccia-qemu-72d346f3b8504804df047166164af52af4f95708.tar.gz focaccia-qemu-72d346f3b8504804df047166164af52af4f95708.zip | |
hw/core/machine-smp: Remove deprecated "parameter=0" SMP configurations
The "parameter=0" SMP configurations have been marked as deprecated since v6.2. For these cases, -smp currently returns the warning and adjusts the zeroed parameters to 1 by default. Remove the above compatibility logic in v9.0, and return error directly if any -smp parameter is set as 0. Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Prasad Pandit <pjp@fedoraproject.org> Message-ID: <20240308160148.3130837-2-zhao1.liu@linux.intel.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'hw/core/machine-smp.c')
| -rw-r--r-- | hw/core/machine-smp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/core/machine-smp.c b/hw/core/machine-smp.c index 25019c91ee..96533886b1 100644 --- a/hw/core/machine-smp.c +++ b/hw/core/machine-smp.c @@ -105,8 +105,9 @@ void machine_parse_smp_config(MachineState *ms, (config->has_cores && config->cores == 0) || (config->has_threads && config->threads == 0) || (config->has_maxcpus && config->maxcpus == 0)) { - warn_report("Deprecated CPU topology (considered invalid): " - "CPU topology parameters must be greater than zero"); + error_setg(errp, "Invalid CPU topology: " + "CPU topology parameters must be greater than zero"); + return; } /* |