Re: [Qemu-devel] [PATCH 2/9] target-i386: Move TCG initialization to realize time

2016-05-10 Thread Igor Mammedov
On Fri, 6 May 2016 15:11:25 -0300 Eduardo Habkost wrote: > QOM instance_init functions are not supposed to have any side-effects, > as new objects may be created at any moment for querying property > information (see qmp_device_list_properties()). > > Move TCG initialization to realize time so

[Qemu-devel] [PATCH 2/9] target-i386: Move TCG initialization to realize time

2016-05-06 Thread Eduardo Habkost
QOM instance_init functions are not supposed to have any side-effects, as new objects may be created at any moment for querying property information (see qmp_device_list_properties()). Move TCG initialization to realize time so it won't be called when just doing object_new() on a X86CPU subclass.