[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 16/19] s390x: allow cpu hotplug via device_ad
From: |
David Hildenbrand |
Subject: |
Re: [Qemu-devel] [PATCH v2 16/19] s390x: allow cpu hotplug via device_add |
Date: |
Thu, 7 Sep 2017 15:04:29 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
On 07.09.2017 05:16, Matthew Rosato wrote:
> On 09/04/2017 11:43 AM, David Hildenbrand wrote:
>> E.g. the following now works:
>> device_add host-s390-cpu,id=cpu1,core-id=1
>>
>> The system will perform the same checks as when using cpu_add:
>> - If the core_id is already in use
>> - If the next sequential core_id isn't used
>> - If core-id >= max_cpu is specified
>>
>> In addition, mixed CPU models are checked. E.g. if starting with
>> -cpu host and trying to hotplug "qemu-s390-cpu":
>> "Mixed CPU models are not supported on s390x."
>>
>> Signed-off-by: David Hildenbrand <address@hidden>
>
> As easy as flipping a switch, right?
Yes, luckily all that hotplug handling already was in place, just
core-id vs. id had to be fixed.
>
> Tested the new device_add path, the old cpu-add path and mixed cases
> where I alternated adding cpus via both methods -- looking good.
>
> Reviewed-by: Matthew Rosato <address@hidden>
>
Thanks!
--
Thanks,
David
- Re: [Qemu-devel] [PATCH v2 12/19] target/s390x: set cpu->id for linux user when realizing, (continued)
- [Qemu-devel] [PATCH v2 14/19] target/s390x: rename next_cpu_id to next_core_id, David Hildenbrand, 2017/09/04
- [Qemu-devel] [PATCH v2 13/19] target/s390x: use "core-id" for cpu number/address/id handling, David Hildenbrand, 2017/09/04
- [Qemu-devel] [PATCH v2 15/19] s390x: print CPU definitions in sorted order, David Hildenbrand, 2017/09/04
- [Qemu-devel] [PATCH v2 16/19] s390x: allow cpu hotplug via device_add, David Hildenbrand, 2017/09/04
- [Qemu-devel] [PATCH v2 17/19] s390x: CPU hot unplug via device_del cannot work, David Hildenbrand, 2017/09/04
Re: [Qemu-devel] [PATCH v2 17/19] s390x: CPU hot unplug via device_del cannot work, Matthew Rosato, 2017/09/06
[Qemu-devel] [PATCH v2 18/19] s390x: implement query-hotpluggable-cpus, David Hildenbrand, 2017/09/04
[Qemu-devel] [PATCH v2 19/19] s390x: get rid of cpu_s390x_create(), David Hildenbrand, 2017/09/04