[Xen-devel] [PATCH v12 5/9] memory: add check_get_page_from_gfn() as a wrapper...

2018-09-27 Thread Paul Durrant
...for some uses of get_page_from_gfn(). There are many occurrences 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) ) { if ( page ) put_page(page); p2m_mem_pagi

Re: [Xen-devel] [PATCH v12 5/9] memory: add check_get_page_from_gfn() as a wrapper...

2018-10-01 Thread Julien Grall
Hi Paul, On 09/27/2018 03:33 PM, Paul Durrant wrote: ...for some uses of get_page_from_gfn(). There are many occurrences 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) ) {

Re: [Xen-devel] [PATCH v12 5/9] memory: add check_get_page_from_gfn() as a wrapper...

2018-10-01 Thread Paul Durrant
> -Original Message- > From: Julien Grall [mailto:julien.gr...@arm.com] > Sent: 01 October 2018 11:26 > To: Paul Durrant ; xen-devel@lists.xenproject.org > Cc: Andrew Cooper ; George Dunlap > ; Ian Jackson ; Konrad > Rzeszutek Wilk ; Stefano Stabellini > ; Tim (Xen.org) ; Wei Liu > > Subje