Am 11.04.2013 16:51, schrieb Igor Mammedov: > Currently device_set_realized() sets parent only after device was realized, > But qdev_device_add() sets it before device is realized. > Make behavior consistent and alter device_set_realized() to behave like > qdev_device_add(). > > It will allow to set link<> properties in realize() method in classes > inherited from DEVICE. > > Signed-off-by: Igor Mammedov <imamm...@redhat.com> > Reviewed-by: Paolo Bonzini <pbonz...@redhat.com> > --- > * Usage examples > - conversion to CPU back-link property in APIC > - pre-allocate link<CPU[n]> at board level, and populate them > at realize time when CPUs are created. > --- > hw/core/qdev.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-)
Thanks, applied to qom-cpu: https://github.com/afaerber/qemu-cpu/commits/qom-cpu Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg