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 specified. > > > > Prevent this crash and make it a graceful exit from QEMU itself by > > validating the user supplied threads count. > > > > Signed-off-by: Bharata B Rao <bhar...@linux.vnet.ibm.com> > > --- > > Changes in v2: Use is_power_of_2() from QEMU itself instead of depending > > on libm. > > v1: https://lists.gnu.org/archive/html/qemu-devel/2014-03/msg00660.html > > v0: https://lists.gnu.org/archive/html/qemu-devel/2014-03/msg00355.html > > Reviewed-by: Eric Blake <ebl...@redhat.com>
> Reviewed-by: Stewart Smith <stew...@linux.vnet.ibm.com> Alexander/Andreas, Could you take this patch into your tree ? Regards, Bharata.