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

2014-03-04 Thread Bharata B Rao
On Tue, Mar 04, 2014 at 09:13:38PM -0700, Eric Blake wrote: > On 03/04/2014 08:36 PM, 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 v1] ppc: Force CPU threads count to be a power of 2.

2014-03-04 Thread Eric Blake
On 03/04/2014 08:36 PM, 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 v1] ppc: Force CPU threads count to be a power of 2.

2014-03-04 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