Re: [Qemu-devel] [RFC 02/18] pc: create PC object on pc_init1()

2012-10-03 Thread Paolo Bonzini
Il 03/10/2012 16:53, Eduardo Habkost ha scritto: >> > >> > Can you add a hook to QEMUMachine so that this object is created by >> > qdev_get_machine() and ends up at /machine? > Oh, I didn't know there was an existing "machine" object already, I > didn't know qdev_get_machine(). > > Shouldn't /ma

Re: [Qemu-devel] [RFC 02/18] pc: create PC object on pc_init1()

2012-10-03 Thread Eduardo Habkost
On Wed, Oct 03, 2012 at 04:40:06PM +0200, Paolo Bonzini wrote: > Il 03/10/2012 15:28, Eduardo Habkost ha scritto: > > It would be interesting to make the generic machine intialization code > > create a machine object instead, but changing the machine initialization > > function signature is a night

Re: [Qemu-devel] [RFC 02/18] pc: create PC object on pc_init1()

2012-10-03 Thread Paolo Bonzini
Il 03/10/2012 15:28, Eduardo Habkost ha scritto: > It would be interesting to make the generic machine intialization code > create a machine object instead, but changing the machine initialization > function signature is a nightmare, so by now I am creating the object > inside pc_init1(). > > The

[Qemu-devel] [RFC 02/18] pc: create PC object on pc_init1()

2012-10-03 Thread Eduardo Habkost
It would be interesting to make the generic machine intialization code create a machine object instead, but changing the machine initialization function signature is a nightmare, so by now I am creating the object inside pc_init1(). The object is not used for anything by now, but it will be used d