Re: [Xen-devel] [PATCH] xen: grant-table: Simplify get_page_frame

2017-09-15 Thread Julien Grall
Hi Jan, On 09/15/2017 01:15 PM, Jan Beulich wrote: On 14.09.17 at 18:49, wrote: get_page_from_gfn will be able to get reference on foreign page and as per my understanding will allow to grant page on foreign memory. This was not allowed with a simple get_page(...) on the ARM implementation (n

Re: [Xen-devel] [PATCH] xen: grant-table: Simplify get_page_frame

2017-09-15 Thread Jan Beulich
>>> On 14.09.17 at 18:49, wrote: > get_page_from_gfn will be able to get reference on foreign page and as > per my understanding will allow to grant page on foreign memory. > > This was not allowed with a simple get_page(...) on the ARM > implementation (no sharing nor paging supprot) but is allo

[Xen-devel] [PATCH] xen: grant-table: Simplify get_page_frame

2017-09-14 Thread Julien Grall
The implementation of get_page_frame is currently different whether the architecture support sharing memory or paging memory. Both version are extremely similar so it is possible to consolidate in a single implementation. The check for shared/paged memory are gated with the respective ifdef. Poten