Re: [Qemu-devel] [PATCH 06/14] qdev: add ability to do QOM-style derived naming

2011-09-17 Thread Blue Swirl
On Fri, Sep 16, 2011 at 4:00 PM, Anthony Liguori wrote: > By using a prefix of "::" in the name, we can safely derive the composed > device > name from the parent device and busses name.  For instance, if the "::i440fx" > device created a device named "piix3", it would look like this: > >  static

[Qemu-devel] [PATCH 06/14] qdev: add ability to do QOM-style derived naming

2011-09-16 Thread Anthony Liguori
By using a prefix of "::" in the name, we can safely derive the composed device name from the parent device and busses name. For instance, if the "::i440fx" device created a device named "piix3", it would look like this: static void i440fx_initfn(...) { s->piix3 = qdev_create("PIIX3", "::pi