[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH] Introduce DEVICE_CATEGORY_CPU for CP
From: |
Thomas Huth |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH] Introduce DEVICE_CATEGORY_CPU for CPU devices |
Date: |
Fri, 20 Jan 2017 13:55:18 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 |
On 20.01.2017 13:31, Peter Maydell wrote:
> On 20 January 2017 at 12:18, Thomas Huth <address@hidden> wrote:
>> Now that the hot-pluggable CPUs show up in the help text of
>> "-device ?", we should group them into an appropriate category.
>>
>> Signed-off-by: Thomas Huth <address@hidden>
>> ---
>> hw/ppc/pnv_core.c | 1 +
>> hw/ppc/spapr_cpu_core.c | 1 +
>> include/hw/qdev-core.h | 1 +
>> qdev-monitor.c | 1 +
>> target/i386/cpu.c | 2 ++
>> 5 files changed, 6 insertions(+)
>
> Can we just set the category bit in the class init functions
> for the TYPE_CPU and TYPE_CPU_CORE superclasses, rather
> than having to do it in a subclass for each architecture
> (and thus potentially forgetting to do it for other archs) ?
Good idea, that seems to work, too. I'll send a v2 ...
Thomas