qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC PATCH 09/13] memory: MemoryRegion: QOMify


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [RFC PATCH 09/13] memory: MemoryRegion: QOMify
Date: Wed, 11 Jun 2014 16:48:20 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Il 11/06/2014 16:32, Peter Crosthwaite ha scritto:
> In the end, I believe the conceptual cleanliness of destroy==unparent, and
> the removal of 200-odd memory_region_destroy calls, are worth the extra ugly
> [0]'s.
>
I think you get to keep the uniqueness though under my latest
proposal? No tree-wide collision resolution needed. When
object_property_add_child_array sucessfully sets something to [0] (i
== 0 iteration), just create an alias without [] at the same time. The
naming system will behave identically to this patch as-is in all the
collision cases (i >= 1).

Yes, but then you get duplicates, and some of them are wrong (the ones without [0] if there is also a [1]).

I think the solution could be to special case names ending with "[*]" (perhaps straight in object_property_add_child!), and then audit manually at all the 400+ init calls.

For now I'd rather keep it simple.

Paolo



reply via email to

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