Re: [RFC PATCH 010/134] hw/avr: Give onboard devices a QOM parent
Philippe Mathieu-Daudé <[email protected]>
| Newsgroups | org.nongnu.qemu-riscv,org.nongnu.qemu-arm,org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
On 12/7/26 00:35, Alexander Graf wrote: > Convert the *_orphan() device-creation calls in hw/avr to the new > parented API introduced earlier in this series, so every onboard > device gets a stable path in the composition tree instead of landing > in /machine/unattached with an unstable device[N] name. > > The parent for each device is the object that owns its lifetime: the > machine for board-created devices, the containing device for > composite children. Names follow existing QOM conventions. > > Per-site rationale (reviewers: dispute the modeling here): > > file:line | parent | name | rationale > atmega.c:287 | OBJECT(dev) | "io" | unimplemented I/O placeholder is a fixed child of the Atmega SoC; SoC realize() creates it, SoC owns it > > Link: https://lore.kernel.org/qemu-devel/[email protected]/ > Assisted-by: Kiro > Signed-off-by: Alexander Graf <[email protected]> > --- > hw/avr/atmega.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <[email protected]>