Re: [PATCH 1/1] hw/i386: prevent crash when an invalid number of dies is given

2020-10-19 Thread Willian Rampazzo
On Mon, Oct 12, 2020 at 12:35 AM Cleber Rosa wrote: > > When parsing the topology, the right default value of 1 is given to > dies, but if an invalid number such as 0 is given, QEMU will crash > with a floating point exception. > > The alternative approach is to silently set dies to a valid value,

[PATCH 1/1] hw/i386: prevent crash when an invalid number of dies is given

2020-10-11 Thread Cleber Rosa
When parsing the topology, the right default value of 1 is given to dies, but if an invalid number such as 0 is given, QEMU will crash with a floating point exception. The alternative approach is to silently set dies to a valid value, as it's done with cores and threads. Signed-off-by: Cleber Ros