Re: [Qemu-devel] [PATCH v2] ppc: Force CPU threads count to be a power of 2.

2014-03-19 Thread Andreas Färber
Am 19.03.2014 03:47, schrieb Bharata B Rao: > On Wed, Mar 05, 2014 at 06:59:29AM -0700, Eric Blake wrote: >> On 03/05/2014 01:32 AM, Bharata B Rao wrote: >>> PowerPC kernel expects the number of SMT threads in a core to be a power >>> of 2. Since QEMU doesn't enforce this, it leads to an early gues

Re: [Qemu-devel] [PATCH v2] ppc: Force CPU threads count to be a power of 2.

2014-03-18 Thread Bharata B Rao
On Wed, Mar 05, 2014 at 06:59:29AM -0700, Eric Blake wrote: > On 03/05/2014 01:32 AM, Bharata B Rao wrote: > > PowerPC kernel expects the number of SMT threads in a core to be a power > > of 2. Since QEMU doesn't enforce this, it leads to an early guest kernel > > crash if invalid threads count is

Re: [Qemu-devel] [PATCH v2] ppc: Force CPU threads count to be a power of 2.

2014-03-05 Thread Stewart Smith
Bharata B Rao writes: > PowerPC kernel expects the number of SMT threads in a core to be a power > of 2. Since QEMU doesn't enforce this, it leads to an early guest kernel > crash if invalid threads count is specified. > > Prevent this crash and make it a graceful exit from QEMU itself by > valid

Re: [Qemu-devel] [PATCH v2] ppc: Force CPU threads count to be a power of 2.

2014-03-05 Thread Eric Blake
On 03/05/2014 01:32 AM, Bharata B Rao wrote: > PowerPC kernel expects the number of SMT threads in a core to be a power > of 2. Since QEMU doesn't enforce this, it leads to an early guest kernel > crash if invalid threads count is specified. > > Prevent this crash and make it a graceful exit from

[Qemu-devel] [PATCH v2] ppc: Force CPU threads count to be a power of 2.

2014-03-05 Thread Bharata B Rao
PowerPC kernel expects the number of SMT threads in a core to be a power of 2. Since QEMU doesn't enforce this, it leads to an early guest kernel crash if invalid threads count is specified. Prevent this crash and make it a graceful exit from QEMU itself by validating the user supplied threads cou