[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH qom-next 04/59] pc: Add CPU as /machine/cpu[n]
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [PATCH qom-next 04/59] pc: Add CPU as /machine/cpu[n] |
Date: |
Fri, 08 Jun 2012 14:26:55 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120421 Thunderbird/12.0 |
Am 08.06.2012 13:36, schrieb Igor Mammedov:
> On Fri, Jun 08, 2012 at 12:36:18PM +0200, Andreas Färber wrote:
>> Am 08.06.2012 12:21, schrieb Jan Kiszka:
>>> On 2012-06-08 11:11, Andreas Färber wrote:
>>>> >From what I understand about the x86 modeling, the only case this
>>>> matters is if you hot-unplug CPU 0, right? Question is, what happens
>>>> with the APIC then? I would guess the remaining n-1 CPUs still want to
>>>> access the APIC
>>>
>>> APICs are per-CPU, each has its own.
>>
>> [...] if each CPU always has its own APIC there's no reason to link<>
>> them. It should be a child<> and it should be initialized in-place.
>>
>> Igor, can you please look into that?
> Sure, Could you point to an example of creating a QOMified object in place,
> please?
http://patchwork.ozlabs.org/patch/161497/
and Anthony's i440fx series.
If I'm reading the code correctly then we'd need to add the APIC as a
child of the CPU before its qdev initfn is called, i.e. in place of the
current qdev pointer property.
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
- Re: [Qemu-devel] [PATCH qom-next 04/59] pc: Add CPU as /machine/cpu[n], Igor Mammedov, 2012/06/08
- Re: [Qemu-devel] [PATCH qom-next 04/59] pc: Add CPU as /machine/cpu[n], Andreas Färber, 2012/06/08
- Re: [Qemu-devel] [PATCH qom-next 04/59] pc: Add CPU as /machine/cpu[n], Jan Kiszka, 2012/06/08
- Re: [Qemu-devel] [PATCH qom-next 04/59] pc: Add CPU as /machine/cpu[n], Igor Mammedov, 2012/06/08
- Re: [Qemu-devel] [PATCH qom-next 04/59] pc: Add CPU as /machine/cpu[n], Andreas Färber, 2012/06/08
- Re: [Qemu-devel] [PATCH qom-next 04/59] pc: Add CPU as /machine/cpu[n], Jan Kiszka, 2012/06/08
- Re: [Qemu-devel] [PATCH qom-next 04/59] pc: Add CPU as /machine/cpu[n], Igor Mammedov, 2012/06/08
- Re: [Qemu-devel] [PATCH qom-next 04/59] pc: Add CPU as /machine/cpu[n], Jan Kiszka, 2012/06/08
- Re: [Qemu-devel] [PATCH qom-next 04/59] pc: Add CPU as /machine/cpu[n], Andreas Färber, 2012/06/08
- Re: [Qemu-devel] [PATCH qom-next 04/59] pc: Add CPU as /machine/cpu[n], Q (Igor Mammedov), 2012/06/08