Hi Paolo, Andreas, This patch series QOMifies Memory regions. This is the Memory API specific subset of patches forming part of the Memory/GPIO/Sysbus QOMification.
I think Paolo already has P1 enqeued. Including for ease of review. some QOM patches in P2-4 that cut down on later boilerplate. TBH I can live without them, if they not liked but they make life better IMO. For fuller context please see: http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg03265.html and http://lists.gnu.org/archive/html/qemu-devel/2014-06/msg00359.html Changed since v3: Add Paolo's QOM resolver patch Add resolver for MemoryRegion container property. Changed since v2: Use object unref to finalize MR (Paolo review) Fixed priority prop getter Changed prioirty to signed type in QOM getters/setterts Changed since v1: Split into subset series. Converted container link into low level link. Misc finer tweaks and patch re-orderings. Paolo Bonzini (1): qom: add a generic mechanism to resolve paths Peter Crosthwaite (9): memory: Simplify mr_add_subregion() if-else qom: object: Ignore refs/unrefs of NULL qom: Publish object_resolve_link memory: Coreify subregion add functionality memory: MemoryRegion: factor out memory region re-adder memory: MemoryRegion: QOMify memory: MemoryRegion: Add container and addr props memory: MemoryRegion: Add may-overlap and priority props memory: MemoryRegion: Add size property include/exec/memory.h | 8 +- include/qom/object.h | 65 +++++++++++ memory.c | 318 +++++++++++++++++++++++++++++++++++++++++++------- qom/object.c | 84 +++++++------ 4 files changed, 395 insertions(+), 80 deletions(-) -- 2.0.0