Re: [PATCH v6 2/2] memory: Do not create circular reference with subregion

2025-01-08 Thread Peter Xu
On Sun, Jan 05, 2025 at 05:56:19PM +0900, Akihiko Odaki wrote: > memory_region_update_container_subregions() used to call > memory_region_ref(), which creates a reference to the owner of the > subregion, on behalf of the owner of the container. This results in a > circular reference if the subregio

[PATCH v6 2/2] memory: Do not create circular reference with subregion

2025-01-05 Thread Akihiko Odaki
memory_region_update_container_subregions() used to call memory_region_ref(), which creates a reference to the owner of the subregion, on behalf of the owner of the container. This results in a circular reference if the subregion and container have the same owner. memory_region_ref() creates a ref