Re: [Xen-devel] [PATCH 16/17] xen/mm: Convert {s, g}et_gpfn_from_mfn() to use typesafe MFN

2020-03-30 Thread Jan Beulich
On 28.03.2020 12:14, Julien Grall wrote: > On 27/03/2020 13:15, Jan Beulich wrote: >> On 22.03.2020 17:14, jul...@xen.org wrote: >>> @@ -983,19 +984,20 @@ long p2m_pt_audit_p2m(struct p2m_domain *p2m) >>>   /* check for 1GB super page */ >>>   if (

Re: [Xen-devel] [PATCH 16/17] xen/mm: Convert {s, g}et_gpfn_from_mfn() to use typesafe MFN

2020-03-28 Thread Julien Grall
Hi, On 27/03/2020 13:15, Jan Beulich wrote: On 22.03.2020 17:14, jul...@xen.org wrote: @@ -983,19 +984,20 @@ long p2m_pt_audit_p2m(struct p2m_domain *p2m) /* check for 1GB super page */ if ( l3e_get_flags(l3e[i3]) & _PAGE_PSE ) { -

Re: [Xen-devel] [PATCH 16/17] xen/mm: Convert {s, g}et_gpfn_from_mfn() to use typesafe MFN

2020-03-27 Thread Jan Beulich
On 22.03.2020 17:14, jul...@xen.org wrote: > @@ -983,19 +984,20 @@ long p2m_pt_audit_p2m(struct p2m_domain *p2m) > /* check for 1GB super page */ > if ( l3e_get_flags(l3e[i3]) & _PAGE_PSE ) > { > -mfn = l3e_get_pfn(l3e[i3]); >

Re: [Xen-devel] [PATCH 16/17] xen/mm: Convert {s, g}et_gpfn_from_mfn() to use typesafe MFN

2020-03-23 Thread Julien Grall
Hi, On 23/03/2020 12:11, Hongyan Xia wrote: On Sun, 2020-03-22 at 16:14 +, jul...@xen.org wrote: From: Julien Grall The first parameter of {s,g}et_gpfn_from_mfn() is an MFN, so it can be switched to use the typesafe. At the same time, replace gpfn with pfn in the helpers as they all

Re: [Xen-devel] [PATCH 16/17] xen/mm: Convert {s, g}et_gpfn_from_mfn() to use typesafe MFN

2020-03-23 Thread Hongyan Xia
On Sun, 2020-03-22 at 16:14 +, jul...@xen.org wrote: > From: Julien Grall > > The first parameter of {s,g}et_gpfn_from_mfn() is an MFN, so it can > be > switched to use the typesafe. > > At the same time, replace gpfn with pfn in the helpers as they all > deal > with PFN and also turn the