Re: [PATCH v2 0/3] memory: memory_region_is_mapped() cleanups

2021-10-27 Thread Peter Xu
On Wed, Oct 27, 2021 at 09:12:08AM +0200, David Hildenbrand wrote: > On 27.10.21 05:53, Peter Xu wrote: > > On Tue, Oct 26, 2021 at 06:06:46PM +0200, David Hildenbrand wrote: > >> This is the follow-up of [1]. > >> > >> Playing with memory_region_is_mapped(), I realized that memory regions > >> map

Re: [PATCH v2 0/3] memory: memory_region_is_mapped() cleanups

2021-10-27 Thread David Hildenbrand
On 27.10.21 05:53, Peter Xu wrote: > On Tue, Oct 26, 2021 at 06:06:46PM +0200, David Hildenbrand wrote: >> This is the follow-up of [1]. >> >> Playing with memory_region_is_mapped(), I realized that memory regions >> mapped via an alias behave a little bit "differently", as they don't have >> their

Re: [PATCH v2 0/3] memory: memory_region_is_mapped() cleanups

2021-10-26 Thread Peter Xu
On Tue, Oct 26, 2021 at 06:06:46PM +0200, David Hildenbrand wrote: > This is the follow-up of [1]. > > Playing with memory_region_is_mapped(), I realized that memory regions > mapped via an alias behave a little bit "differently", as they don't have > their ->container set. The patches look ok to

[PATCH v2 0/3] memory: memory_region_is_mapped() cleanups

2021-10-26 Thread David Hildenbrand
This is the follow-up of [1]. Playing with memory_region_is_mapped(), I realized that memory regions mapped via an alias behave a little bit "differently", as they don't have their ->container set. * memory_region_is_mapped() will never succeed for memory regions mapped via an alias * memory_reg