Re: [Xen-devel] [PATCH v2 11/13] memory: add get_paged_gfn() as a wrapper...

2018-07-11 Thread Paul Durrant
> -Original Message- > From: George Dunlap [mailto:george.dun...@citrix.com] > Sent: 11 July 2018 14:05 > To: Paul Durrant ; xen-devel@lists.xenproject.org > Cc: Jan Beulich ; Andrew Cooper > ; Ian Jackson ; > Julien Grall ; Konrad Rzeszutek Wilk > ; Stefano Stabellini ; Tim > (Xen.org) ; W

Re: [Xen-devel] [PATCH v2 11/13] memory: add get_paged_gfn() as a wrapper...

2018-07-11 Thread George Dunlap
On 07/11/2018 01:31 PM, Paul Durrant wrote: >>> diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c >>> index c6b99c4116..510f37f100 100644 >>> --- a/xen/common/grant_table.c >>> +++ b/xen/common/grant_table.c >>> @@ -375,39 +375,23 @@ static int get_paged_frame(unsigned long gfn, >> m

Re: [Xen-devel] [PATCH v2 11/13] memory: add get_paged_gfn() as a wrapper...

2018-07-11 Thread Paul Durrant
> -Original Message- > From: George Dunlap [mailto:george.dun...@citrix.com] > Sent: 11 July 2018 12:24 > To: Paul Durrant ; xen-devel@lists.xenproject.org > Cc: Jan Beulich ; Andrew Cooper > ; George Dunlap > ; Ian Jackson ; Julien > Grall ; Konrad Rzeszutek Wilk > ; Stefano Stabellini ; T

Re: [Xen-devel] [PATCH v2 11/13] memory: add get_paged_gfn() as a wrapper...

2018-07-11 Thread George Dunlap
On 07/07/2018 12:05 PM, Paul Durrant wrote: > ...for some uses of get_page_from_gfn(). > > There are many occurences of the following pattern in the code: > > q = ? P2M_ALLOC : P2M_UNSHARE; > page = get_page_from_gfn(d, gfn, &p2mt, q); > > if ( p2m_is_paging(p2mt) ) > { >