Re: [Xen-devel] [PATCH 04/17] xen: Convert virt_to_mfn() and mfn_to_virt() to use typesafe MFN

2020-03-28 Thread Julien Grall
Hi, On 26/03/2020 09:09, Jan Beulich wrote: On 25.03.2020 19:21, Julien Grall wrote: On 25/03/2020 15:27, Jan Beulich wrote: On 22.03.2020 17:14, jul...@xen.org wrote: @@ -785,21 +781,21 @@ bool is_iomem_page(mfn_t mfn)   return (page_get_owner(page) == dom_io);   }   -static int

Re: [Xen-devel] [PATCH 04/17] xen: Convert virt_to_mfn() and mfn_to_virt() to use typesafe MFN

2020-03-26 Thread Jan Beulich
On 25.03.2020 19:21, Julien Grall wrote: > On 25/03/2020 15:27, Jan Beulich wrote: >> On 22.03.2020 17:14, jul...@xen.org wrote: >>> @@ -785,21 +781,21 @@ bool is_iomem_page(mfn_t mfn) >>>   return (page_get_owner(page) == dom_io); >>>   } >>>   -static int update_xen_mappings(unsigned long

Re: [Xen-devel] [PATCH 04/17] xen: Convert virt_to_mfn() and mfn_to_virt() to use typesafe MFN

2020-03-25 Thread Julien Grall
Hi Jan, On 25/03/2020 15:27, Jan Beulich wrote: On 22.03.2020 17:14, jul...@xen.org wrote: @@ -785,21 +781,21 @@ bool is_iomem_page(mfn_t mfn) return (page_get_owner(page) == dom_io); } -static int update_xen_mappings(unsigned long mfn, unsigned int cacheattr) +static int

Re: [Xen-devel] [PATCH 04/17] xen: Convert virt_to_mfn() and mfn_to_virt() to use typesafe MFN

2020-03-25 Thread Jan Beulich
On 22.03.2020 17:14, jul...@xen.org wrote: > @@ -785,21 +781,21 @@ bool is_iomem_page(mfn_t mfn) > return (page_get_owner(page) == dom_io); > } > > -static int update_xen_mappings(unsigned long mfn, unsigned int cacheattr) > +static int update_xen_mappings(mfn_t mfn, unsigned int

[Xen-devel] [PATCH 04/17] xen: Convert virt_to_mfn() and mfn_to_virt() to use typesafe MFN

2020-03-22 Thread julien
From: Julien Grall Most of Xen is now either override the helpers virt_to_mfn() and mfn_to_virt() to use typesafe MFN or use mfn_x() to remove the typesafety when calling the helpers. Therefore it is time to switch the two helpers to use typesafe MFN and remove completely the possibly to make