On 06/10/2020 23:06, Eduardo Habkost wrote: > Hi, > > While trying to understand how QOM properties are used in QEMU, I > stumbled upon multiple cases where alias properties are added at > realize time. > > Now, I don't understand why those properties exist. As the > properties are added at realize time, I assume they aren't > supposed to be touched by the user at all. If they are not > supposed to be touched by the user, what exactly is the purpose > of those QOM properties? > > For reference, these are the cases I've found:
(cut) > -- > hw/misc/mac_via.c=1011=static void mac_via_realize(DeviceState *dev, Error > **errp) > hw/misc/mac_via.c:1028: object_property_add_alias(OBJECT(dev), "irq[0]", > OBJECT(ms), This one was me trying to work out how to wire up an IRQ from a child device embedded within the macio device - I'll send a patch to remove it shortly. ATB, Mark.