Re: [Qemu-devel] [PATCH v2 4/4] qdev: put all devices under /machine

2012-03-28 Thread Paolo Bonzini
Il 28/03/2012 17:10, Andreas Färber ha scritto: >> > if (dev == NULL) { >> > -dev = container_get("/peripheral"); >> > +dev = container_get("/machine/peripheral"); > I was kinda hoping we could even do something like this in 1/4: > container_get_relative(qdev_get_machine(), "pe

Re: [Qemu-devel] [PATCH v2 4/4] qdev: put all devices under /machine

2012-03-28 Thread Andreas Färber
Am 28.03.2012 16:34, schrieb Paolo Bonzini: > Avoid cluttering too much the QOM root. > > Signed-off-by: Paolo Bonzini > --- > v1->v2: add qdev_get_machine() and use it. Thanks, > > hw/piix_pci.c |2 +- > hw/ppc_prep.c |2 +- > hw/qdev-monitor.c |4 ++-- > hw/qdev.c

[Qemu-devel] [PATCH v2 4/4] qdev: put all devices under /machine

2012-03-28 Thread Paolo Bonzini
Avoid cluttering too much the QOM root. Signed-off-by: Paolo Bonzini --- v1->v2: add qdev_get_machine() and use it. hw/piix_pci.c |2 +- hw/ppc_prep.c |2 +- hw/qdev-monitor.c |4 ++-- hw/qdev.c | 13 - hw/qdev.h |2 ++ 5 files chang