diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-08-13 13:26:06 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-08-13 14:43:35 +0200 |
commit | 0b46318170bf2782564e1c444e01a47cda308c7f (patch) | |
tree | dc6af0d523cb89ffb2f7cdaff68d30e7392f9246 /hw | |
parent | 24d84c7e4806da0c362edd2ee76678f15becd17d (diff) | |
download | qemu-0b46318170bf2782564e1c444e01a47cda308c7f.zip qemu-0b46318170bf2782564e1c444e01a47cda308c7f.tar.gz qemu-0b46318170bf2782564e1c444e01a47cda308c7f.tar.bz2 |
hw/core: Add missing return on error
If dies is not supported by this machine's CPU topology, don't
keep processing options and return directly.
Fixes: 0aebebb561c ("machine: reject -smp dies!=1 for non-PC machines")
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210813112608.1452541-2-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/core/machine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c index 943974d..abaeda5 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -752,6 +752,7 @@ static void smp_parse(MachineState *ms, SMPConfiguration *config, Error **errp) if (config->has_dies && config->dies != 0 && config->dies != 1) { error_setg(errp, "dies not supported by this machine's CPU topology"); + return; } /* compute missing values, prefer sockets over cores over threads */ |