Re: [Xen-devel] [PATCH] x86/mm: switch to new APIs in arch_init_memory

2020-02-26 Thread Jan Beulich
On 21.02.2020 11:42, Hongyan Xia wrote: > From: Wei Liu > > Since we now map and unmap Xen PTE pages, we would like to track the > lifetime of mappings so that 1) we do not dereference memory through a > variable after it is unmapped, 2) we do not unmap more than once. > Therefore, we introduce t

Re: [Xen-devel] [PATCH] x86/mm: switch to new APIs in arch_init_memory

2020-02-21 Thread Julien Grall
Hi Hongyan, On 21/02/2020 10:42, Hongyan Xia wrote: From: Wei Liu Since we now map and unmap Xen PTE pages, we would like to track the lifetime of mappings so that 1) we do not dereference memory through a variable after it is unmapped, 2) we do not unmap more than once. Therefore, we introduc

[Xen-devel] [PATCH] x86/mm: switch to new APIs in arch_init_memory

2020-02-21 Thread Hongyan Xia
From: Wei Liu Since we now map and unmap Xen PTE pages, we would like to track the lifetime of mappings so that 1) we do not dereference memory through a variable after it is unmapped, 2) we do not unmap more than once. Therefore, we introduce the UNMAP_DOMAIN_PAGE macro to nullify the variable a