Am 25.02.2012 22:16, schrieb Anthony Liguori: > On 02/25/2012 02:20 PM, Paolo Bonzini wrote: >> On 02/25/2012 08:42 PM, Anthony Liguori wrote: >>> + >>> object_property_add_child(object_resolve_path("/i440fx/piix3", NULL), >>> + "ioapic", OBJECT(dev), NULL); >> >> Jan objected to putting this under /i440fx/piix3. > > I think for our model, having it as a child property makes quite a lot > of sense.
Weren't you discussing rearranging the tree so that devices are under a separate node from block devices etc. (e.g., /devices)? Would be a good idea to introduce a (dummy) object_resolve_device_path() to avoid having to change hardcoded absolute string paths like the above later. Or do that change first so that new paths like this one at least don't need to be touched again. Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg