[Xen-devel] [PATCH v8 04/15] xen: add function for obtaining highest possible memory address

2017-09-19 Thread Juergen Gross
Add a function for obtaining the highest possible physical memory address of the system. This value is influenced by: - hypervisor configuration (CONFIG_BIGMEM) - processor capability (max. addressable physical memory) - memory map at boot time - memory hotplug capability The value is especially

Re: [Xen-devel] [PATCH v8 04/15] xen: add function for obtaining highest possible memory address

2017-09-20 Thread Jan Beulich
>>> On 20.09.17 at 08:34, wrote: > --- a/xen/arch/x86/mm.c > +++ b/xen/arch/x86/mm.c > @@ -6312,6 +6312,17 @@ int pv_ro_page_fault(unsigned long addr, struct > cpu_user_regs *regs) > return 0; > } > > +unsigned long arch_get_upper_mfn_bound(void) > +{ > +unsigned long max_mfn; > + > +

Re: [Xen-devel] [PATCH v8 04/15] xen: add function for obtaining highest possible memory address

2017-09-20 Thread Juergen Gross
On 20/09/17 10:57, Jan Beulich wrote: On 20.09.17 at 08:34, wrote: >> --- a/xen/arch/x86/mm.c >> +++ b/xen/arch/x86/mm.c >> @@ -6312,6 +6312,17 @@ int pv_ro_page_fault(unsigned long addr, struct >> cpu_user_regs *regs) >> return 0; >> } >> >> +unsigned long arch_get_upper_mfn_bound(v

Re: [Xen-devel] [PATCH v8 04/15] xen: add function for obtaining highest possible memory address

2017-09-20 Thread Jan Beulich
>>> On 20.09.17 at 10:58, wrote: > On 20/09/17 10:57, Jan Beulich wrote: > On 20.09.17 at 08:34, wrote: >>> --- a/xen/arch/x86/mm.c >>> +++ b/xen/arch/x86/mm.c >>> @@ -6312,6 +6312,17 @@ int pv_ro_page_fault(unsigned long addr, struct > cpu_user_regs *regs) >>> return 0; >>> } >>> >>

Re: [Xen-devel] [PATCH v8 04/15] xen: add function for obtaining highest possible memory address

2017-09-20 Thread Juergen Gross
On 20/09/17 11:32, Jan Beulich wrote: On 20.09.17 at 10:58, wrote: >> On 20/09/17 10:57, Jan Beulich wrote: >> On 20.09.17 at 08:34, wrote: --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -6312,6 +6312,17 @@ int pv_ro_page_fault(unsigned long addr, struct >> cpu_user_r

Re: [Xen-devel] [PATCH v8 04/15] xen: add function for obtaining highest possible memory address

2017-09-20 Thread Julien Grall
Hi Juergen, Sorry for the late comment. On 20/09/17 07:34, Juergen Gross wrote: Add a function for obtaining the highest possible physical memory address of the system. This value is influenced by: - hypervisor configuration (CONFIG_BIGMEM) - processor capability (max. addressable physical mem

Re: [Xen-devel] [PATCH v8 04/15] xen: add function for obtaining highest possible memory address

2017-09-20 Thread Juergen Gross
On 20/09/17 14:51, Julien Grall wrote: > Hi Juergen, > > Sorry for the late comment. > > On 20/09/17 07:34, Juergen Gross wrote: >> Add a function for obtaining the highest possible physical memory >> address of the system. This value is influenced by: >> >> - hypervisor configuration (CONFIG_BIG

Re: [Xen-devel] [PATCH v8 04/15] xen: add function for obtaining highest possible memory address

2017-09-20 Thread Julien Grall
Hi Juergen, On 20/09/17 14:08, Juergen Gross wrote: On 20/09/17 14:51, Julien Grall wrote: Hi Juergen, Sorry for the late comment. On 20/09/17 07:34, Juergen Gross wrote: Add a function for obtaining the highest possible physical memory address of the system. This value is influenced by: -

Re: [Xen-devel] [PATCH v8 04/15] xen: add function for obtaining highest possible memory address

2017-09-20 Thread Juergen Gross
On 20/09/17 16:24, Julien Grall wrote: > Hi Juergen, > > On 20/09/17 14:08, Juergen Gross wrote: >> On 20/09/17 14:51, Julien Grall wrote: >>> Hi Juergen, >>> >>> Sorry for the late comment. >>> >>> On 20/09/17 07:34, Juergen Gross wrote: Add a function for obtaining the highest possible phys

Re: [Xen-devel] [PATCH v8 04/15] xen: add function for obtaining highest possible memory address

2017-09-20 Thread Julien Grall
Hi Juergen, On 20/09/17 15:33, Juergen Gross wrote: On 20/09/17 16:24, Julien Grall wrote: On 20/09/17 14:08, Juergen Gross wrote: On 20/09/17 14:51, Julien Grall wrote: Hi Juergen, Sorry for the late comment. On 20/09/17 07:34, Juergen Gross wrote: Add a function for obtaining the highest

Re: [Xen-devel] [PATCH v8 04/15] xen: add function for obtaining highest possible memory address

2017-09-20 Thread Juergen Gross
On 20/09/17 19:15, Julien Grall wrote: > Hi Juergen, > > On 20/09/17 15:33, Juergen Gross wrote: >> On 20/09/17 16:24, Julien Grall wrote: >>> On 20/09/17 14:08, Juergen Gross wrote: On 20/09/17 14:51, Julien Grall wrote: > Hi Juergen, > > Sorry for the late comment. > > O