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