qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v2] ppc: Force CPU threads count to be a power of 2.
Date: Wed, 05 Mar 2014 06:59:29 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

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 <address@hidden>
> ---
> 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 <address@hidden>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]