qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] qom: Introduce object_realize_nofail()


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v2] qom: Introduce object_realize_nofail()
Date: Fri, 13 Apr 2012 10:33:41 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

Il 13/04/2012 10:12, Peter Maydell ha scritto:
> Half a dozen from random grep:
> "xilinx,timer" -- memory region size depends on a property
> "lan9118" -- which MemoryRegionOps we use for the region depends
>   on the "mode_16bit" property.

You can set these at realize time, before the memory region itself is
realized (realization uses pre-order for this reason).

> "SUNW,tcx" -- number of memory regions depend on depth property

The regions can still exist in the device, whether they're mapped
depends on the depth property.

> "a9mpcore_priv" (and its equivalents for a15, 11mpcore, etc)
> "arm_mptimer" -- number of regions and irqs depends on 'num-cpu' prop

Why wouldn't you model this as a parent SoC object with either:

- 1 GIC child, N CPU children, N MPTimer children, and N GICInterface
children (with links to the GIC);

- or 1 GIC + N CPU children, each of the latter having 1 MPTimer child
and 1 GICInterface child (with links to the GIC);

> "grlib,gptimer" -- number of irqs depends on "nr-timers" prop

This one is a good example.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]