diff options
author | Laurent Vivier <lvivier@redhat.com> | 2017-08-02 12:32:59 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2017-08-02 18:30:13 -0300 |
commit | be2960baae07e5257cde8c814cbd91647e235147 (patch) | |
tree | 45fff75cf5b7905f64176cb554d907862b402be5 /docs/spice-port-fqdn.txt | |
parent | aaaec6acad7cf97372d48c1b09126a09697519c8 (diff) | |
download | qemu-be2960baae07e5257cde8c814cbd91647e235147.zip qemu-be2960baae07e5257cde8c814cbd91647e235147.tar.gz qemu-be2960baae07e5257cde8c814cbd91647e235147.tar.bz2 |
cpu: don't allow negative core id
With pseries machine type a negative core-id is not managed properly:
-1 gives an inaccurate error message ("core -1 already populated"),
-2 crashes QEMU (core dump)
As it seems a negative value is invalid for any architecture,
instead of checking this in spapr_core_pre_plug() I think it's better
to check this in the generic part, core_prop_set_core_id()
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20170802103259.25940-1-lvivier@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'docs/spice-port-fqdn.txt')
0 files changed, 0 insertions, 0 deletions