[Xen-devel] [PATCH v9 00/10] xen: better grant v2 support

2017-09-22 Thread Juergen Gross
its instead of different v1 and v2 limits - double default limit for huge hosts Juergen Gross (10): xen: add function for obtaining highest possible memory address libxc: add libxc support for setting grant table resource limits tools: set grant limits for xenstore stubdom libxl: add max possible

Re: [Xen-devel] [PATCH v8 13/15] xen: make grant resource limits per domain

2017-09-22 Thread Juergen Gross
On 22/09/17 10:35, Jan Beulich wrote: On 22.09.17 at 10:27, wrote: >> On 22/09/17 09:53, Jan Beulich wrote: >> On 22.09.17 at 08:19, wrote: On 21/09/17 13:48, Jan Beulich wrote: On 21.09.17 at 13:39, wrote: >> On

Re: [Xen-devel] [PATCH v8 13/15] xen: make grant resource limits per domain

2017-09-22 Thread Juergen Gross
On 22/09/17 09:53, Jan Beulich wrote: On 22.09.17 at 08:19, wrote: >> On 21/09/17 13:48, Jan Beulich wrote: >> On 21.09.17 at 13:39, wrote: On 21/09/17 13:31, Jan Beulich wrote: On 21.09.17 at 09:53, wrote: >> On

Re: [Xen-devel] [PATCH v8 13/15] xen: make grant resource limits per domain

2017-09-22 Thread Juergen Gross
On 21/09/17 13:48, Jan Beulich wrote: On 21.09.17 at 13:39, wrote: >> On 21/09/17 13:31, Jan Beulich wrote: >> On 21.09.17 at 09:53, wrote: On 21/09/17 08:15, Jan Beulich wrote: On 21.09.17 at 06:35, wrote: >> On

Re: [Xen-devel] [PATCH] xen: support 52 bit physical addresses in pv guests

2017-09-21 Thread Juergen Gross
On 21/09/17 16:14, Boris Ostrovsky wrote: > > > On 09/21/2017 04:01 AM, Juergen Gross wrote: >> Physical addresses on processors supporting 5 level paging can be up to >> 52 bits wide. For a Xen pv guest running on such a machine those >> physical addresses ha

Re: [Xen-devel] [PATCH v8 13/15] xen: make grant resource limits per domain

2017-09-21 Thread Juergen Gross
On 21/09/17 13:48, Jan Beulich wrote: On 21.09.17 at 13:39, wrote: >> On 21/09/17 13:31, Jan Beulich wrote: >> On 21.09.17 at 09:53, wrote: On 21/09/17 08:15, Jan Beulich wrote: On 21.09.17 at 06:35, wrote: >> On

Re: [Xen-devel] [PATCH v8 13/15] xen: make grant resource limits per domain

2017-09-21 Thread Juergen Gross
On 21/09/17 13:31, Jan Beulich wrote: On 21.09.17 at 09:53, wrote: >> On 21/09/17 08:15, Jan Beulich wrote: >> On 21.09.17 at 06:35, wrote: On 20/09/17 17:35, Jan Beulich wrote: On 20.09.17 at 14:44, wrote: >> On

Re: [Xen-devel] [PATCH v1] x86: fix bug caused by commit 0ade5e

2017-09-21 Thread Juergen Gross
s enumerated. > > This patch fixes the issues. > > Signed-off-by: Yi Sun <yi.y@linux.intel.com> Reviewed-by: Juergen Gross <jgr...@suse.com> Juergen > --- > xen/arch/x86/psr.c | 9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --gi

[Xen-devel] [PATCH] xen: support 52 bit physical addresses in pv guests

2017-09-21 Thread Juergen Gross
reading/writing a MFN from/to a pte don't use the kernel's PTE_PFN_MASK but a new XEN_PTE_MFN_MASK allowing full 40 bit wide MFNs. Signed-off-by: Juergen Gross <jgr...@suse.com> --- arch/x86/include/asm/xen/page.h | 11 ++- arch/x86/xen/mmu_pv.c | 4 ++-- 2 files chang

Re: [Xen-devel] [PATCH v8 13/15] xen: make grant resource limits per domain

2017-09-21 Thread Juergen Gross
On 21/09/17 08:15, Jan Beulich wrote: On 21.09.17 at 06:35, wrote: >> On 20/09/17 17:35, Jan Beulich wrote: >> On 20.09.17 at 14:44, wrote: On 20/09/17 13:48, Jan Beulich wrote: On 20.09.17 at 13:10, wrote: >> I

Re: [Xen-devel] [PATCH v8 12/15] xen/arm: move arch specific grant table bits into grant_table.c

2017-09-20 Thread Juergen Gross
On 20/09/17 16:34, Julien Grall wrote: > Hi Juergen, > > On 20/09/17 07:34, Juergen Gross wrote: >> diff --git a/xen/include/asm-arm/grant_table.h >> b/xen/include/asm-arm/grant_table.h >> index 0a248a765a..0870b5b782 100644 >> --- a/xen/include/asm-arm/grant_tab

Re: [Xen-devel] [PATCH v8 13/15] xen: make grant resource limits per domain

2017-09-20 Thread Juergen Gross
On 20/09/17 17:35, Jan Beulich wrote: On 20.09.17 at 14:44, wrote: >> On 20/09/17 13:48, Jan Beulich wrote: >> On 20.09.17 at 13:10, wrote: On 20/09/17 12:34, Jan Beulich wrote: On 20.09.17 at 08:34, wrote: >> ---

Re: [Xen-devel] [PATCH v8 14/15] xen: make grant table limits boot parameters dom0 only

2017-09-20 Thread Juergen Gross
On 20/09/17 17:36, Jan Beulich wrote: On 20.09.17 at 14:48, wrote: >> On 20/09/17 14:07, Jan Beulich wrote: >> On 20.09.17 at 08:34, wrote: @@ -3469,14 +3460,17 @@ grant_table_create( /* Simple stuff. */

Re: [Xen-devel] [PATCH v8 15/15] xen: add new Xen cpuid node for max address width info

2017-09-20 Thread Juergen Gross
On 20/09/17 17:42, Jan Beulich wrote: On 20.09.17 at 14:58, wrote: >> On 20/09/17 14:18, Jan Beulich wrote: >> On 20.09.17 at 08:34, wrote: On very large hosts a guest needs to know whether it will have to >>> >>> ... a PV guest ... >> >> What

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: >>>>>

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 w

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: >&

Re: [Xen-devel] [PATCH v8 05/15] xen: add max possible mfn to struct xen_sysctl_physinfo

2017-09-20 Thread Juergen Gross
On 20/09/17 14:53, Julien Grall wrote: > Hi Juergen, > > On 20/09/17 07:34, Juergen Gross wrote: >> Add the maximum possible mfn to struct xen_sysctl_physinfo in order to >> enable Xen tools to size the grant table frame limits for a domU >> >> Signed-off-b

Re: [Xen-devel] [PATCH v8 15/15] xen: add new Xen cpuid node for max address width info

2017-09-20 Thread Juergen Gross
On 20/09/17 14:18, Jan Beulich wrote: On 20.09.17 at 08:34, wrote: >> On very large hosts a guest needs to know whether it will have to > > ... a PV guest ... What about a HVM guest with (potentially) more than 16TB? >> handle frame numbers larger than 32 bits in order to

Re: [Xen-devel] [PATCH v8 14/15] xen: make grant table limits boot parameters dom0 only

2017-09-20 Thread Juergen Gross
On 20/09/17 14:07, Jan Beulich wrote: On 20.09.17 at 08:34, wrote: >> --- a/xen/arch/arm/domain_build.c >> +++ b/xen/arch/arm/domain_build.c >> @@ -2098,7 +2098,7 @@ static void __init find_gnttab_region(struct domain *d, >> kinfo->gnttab_size = (_etext - _stext) &

Re: [Xen-devel] [PATCH v8 13/15] xen: make grant resource limits per domain

2017-09-20 Thread Juergen Gross
On 20/09/17 13:48, Jan Beulich wrote: On 20.09.17 at 13:10, wrote: >> On 20/09/17 12:34, Jan Beulich wrote: >> On 20.09.17 at 08:34, wrote: --- a/xen/common/compat/grant_table.c +++ b/xen/common/compat/grant_table.c @@ -1777,13 +1784,15

Re: [Xen-devel] [PATCH v8 13/15] xen: make grant resource limits per domain

2017-09-20 Thread Juergen Gross
On 20/09/17 12:34, Jan Beulich wrote: On 20.09.17 at 08:34, wrote: >> --- a/xen/common/compat/grant_table.c >> +++ b/xen/common/compat/grant_table.c >> @@ -157,21 +157,14 @@ int compat_grant_table_op(unsigned int cmd, >> unsigned int

Re: [Xen-devel] [PATCH v8 11/15] xen: delay allocation of grant table sub structures

2017-09-20 Thread Juergen Gross
On 20/09/17 12:02, Jan Beulich wrote: On 20.09.17 at 11:44, wrote: >> On 20/09/17 11:22, Jan Beulich wrote: >> On 20.09.17 at 08:34, wrote: @@ -3381,75 +3425,21 @@ grant_table_create( struct domain *d) { struct grant_table

Re: [Xen-devel] [PATCH v8 11/15] xen: delay allocation of grant table sub structures

2017-09-20 Thread Juergen Gross
On 20/09/17 11:22, Jan Beulich wrote: On 20.09.17 at 08:34, wrote: >> @@ -3381,75 +3425,21 @@ grant_table_create( >> struct domain *d) >> { >> struct grant_table *t; >> -unsigned int i, j; >> >> if ( (t = xzalloc(struct grant_table)) == NULL ) >> -

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

Re: [Xen-devel] [PATCH v8 05/15] xen: add max possible mfn to struct xen_sysctl_physinfo

2017-09-20 Thread Juergen Gross
On 20/09/17 10:58, Jan Beulich wrote: >>>> On 20.09.17 at 08:34, <jgr...@suse.com> wrote: >> Add the maximum possible mfn to struct xen_sysctl_physinfo in order to >> enable Xen tools to size the grant table frame limits for a domU. >> >> Sig

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

Re: [Xen-devel] minimum Python version

2017-09-20 Thread Juergen Gross
On 20/09/17 09:55, Jan Beulich wrote: On 20.09.17 at 09:20, wrote: >> For your case: what about adding a configure option to disable building >> the python bindings (and any dependencies like e.g. pygrub) instead of >> doing so in case of a version mismatch? This would avoid

Re: [Xen-devel] minimum Python version

2017-09-20 Thread Juergen Gross
On 20/09/17 09:00, Jan Beulich wrote: > Hello, > > for quite a while (apparently as of Marek's series in February) I've > been seeing > > xen/lowlevel/xc/xc.c: In function ‘pyxc_dom_extract_cpuid’: > xen/lowlevel/xc/xc.c:692:13: error: implicit declaration of function > ‘PyBytes_AS_STRING’

[Xen-devel] [PATCH v8 12/15] xen/arm: move arch specific grant table bits into grant_table.c

2017-09-20 Thread Juergen Gross
Instead of attaching the ARM specific grant table data to the domain structure add it to struct grant_table. Add the needed arch functions to the asm-*/grant_table.h includes. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Paul Durrant <paul.durr...@citrix.com> ---

[Xen-devel] [PATCH v8 13/15] xen: make grant resource limits per domain

2017-09-20 Thread Juergen Gross
Instead of using the same global resource limits of grant tables (max. number of grant frames, max. number of maptrack frames) for all domains make these limits per domain. Set those per-domain limits in grant_table_set_limits(). Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by

[Xen-devel] [PATCH v8 01/15] xen: move XENMAPSPACE_grant_table code into grant_table.c

2017-09-20 Thread Juergen Gross
The x86 and arm versions of XENMAPSPACE_grant_table handling are nearly identical. Move the code into a function in grant_table.c and add an architecture dependant hook to handle the differences. Switch to mfn_t in order to be more type safe. Signed-off-by: Juergen Gross <jgr...@suse.

[Xen-devel] [PATCH v8 14/15] xen: make grant table limits boot parameters dom0 only

2017-09-20 Thread Juergen Gross
parameters remove the documentation of gnttab_max_nr_frames as it isn't existing any longer. Signed-off-by: Juergen Gross <jgr...@suse.com> --- V7: - add boot parameter documentation changes --- docs/misc/xen-command-line.markdown | 15 +++ xen/arch/arm/domain_build.c

[Xen-devel] [PATCH v8 11/15] xen: delay allocation of grant table sub structures

2017-09-20 Thread Juergen Gross
()). Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Paul Durrant <paul.durr...@citrix.com> --- V6: - move call of grant_table_init() for dom0 to grant_table_create() (Jan Beulich) - move frame allocations to gnttab_grow_table() (Jan Beulich) - several other changes due to new

[Xen-devel] [PATCH v8 07/15] tools: set grant limits for xenstore stubdom

2017-09-20 Thread Juergen Gross
). Signed-off-by: Juergen Gross <jgr...@suse.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/helpers/init-xenstore-domain.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/tools/helpers/init-xenstore-domain.c b/tools/helpers/init-xenstore-domain.c index 8a41ee7d3a

[Xen-devel] [PATCH v8 05/15] xen: add max possible mfn to struct xen_sysctl_physinfo

2017-09-20 Thread Juergen Gross
Add the maximum possible mfn to struct xen_sysctl_physinfo in order to enable Xen tools to size the grant table frame limits for a domU. Signed-off-by: Juergen Gross <jgr...@suse.com> --- xen/common/sysctl.c | 1 + xen/include/public/sysctl.h | 2 ++ 2 files changed, 3 inse

[Xen-devel] [PATCH v8 02/15] xen: clean up grant_table.h

2017-09-20 Thread Juergen Gross
Many definitions can be moved from xen/grant_table.h to common/grant_table.c now, as they are no longer used in other sources. Rearrange the elements of struct grant_table to minimize holes due to alignment of elements. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Paul D

[Xen-devel] [PATCH v8 08/15] libxl: add max possible mfn to libxl_physinfo

2017-09-20 Thread Juergen Gross
Add the maximum possible mfn of the host to the libxl_physinfo data structure. Signed-off-by: Juergen Gross <jgr...@suse.com> Acked-by: Ian Jackson <ian.jack...@eu.citrix.com> --- tools/libxl/libxl.c | 1 + tools/libxl/libxl.h | 9 + tools/libxl/libxl_types.

[Xen-devel] [PATCH v8 03/15] xen: add new domctl hypercall to set grant table resource limits

2017-09-20 Thread Juergen Gross
Add a domctl hypercall to set the domain's resource limits regarding grant tables. Signed-off-by: Juergen Gross <jgr...@suse.com> Acked-by: Daniel De Graaf <dgde...@tycho.nsa.gov> --- V8: - remove stale #if 0, adjust comments (Paul Durrant) V6: - moved earlier in serie

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

2017-09-20 Thread Juergen Gross
needed for dom0 to decide sizing of grant frame limits of guests and for pv domains for selecting the grant interface version to use. Signed-off-by: Juergen Gross <jgr...@suse.com> --- xen/arch/x86/mm.c| 11 +++ xen/common/memory.c | 8 xen/include/asm-arm/mm.

[Xen-devel] [PATCH v8 00/15] xen: better grant v2 support

2017-09-20 Thread Juergen Gross
gnttab_setup_table() to gnttab_grow_table() (Paul Durrant) - patch 4: correct error message (Paul Durrant) - patch 6: rename *gnttbl* to *gnttab* (Paul Durrant) Changes in V2: - add per-domain grant limits instead of different v1 and v2 limits - double default limit for huge hosts Juergen Gross (15

[Xen-devel] [PATCH v8 15/15] xen: add new Xen cpuid node for max address width info

2017-09-20 Thread Juergen Gross
the maximum physical address width. The maximum frame width needs to take memory hotplug into account. Signed-off-by: Juergen Gross <jgr...@suse.com> --- xen/arch/x86/traps.c| 4 xen/include/public/arch-x86/cpuid.h | 11 ++- 2 files changed, 14 insertions

[Xen-devel] [PATCH v8 09/15] xl: add global grant limit config items

2017-09-20 Thread Juergen Gross
-off-by: Juergen Gross <jgr...@suse.com> Acked-by: Ian Jackson <ian.jack...@eu.citrix.com> --- V7: - don't use xc_maximum_ram_page() but max_possible_mfn from physinfo --- docs/man/xl.conf.pod.5 | 12 tools/xl/xl.c | 15 +++ tools/xl/xl.h | 2

[Xen-devel] [PATCH v8 06/15] libxc: add libxc support for setting grant table resource limits

2017-09-20 Thread Juergen Gross
Add a new libxc function xc_domain_set_gnttbl_limits() setting the limits for the maximum numbers of grant table frames and maptrack frames of a domain. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Paul Durrant <paul.durr...@citrix.com> Acked-by: Wei Liu <wei.l...@ci

[Xen-devel] [PATCH v8 10/15] libxl: add libxl support for setting grant table resource limits

2017-09-20 Thread Juergen Gross
Add new domain config items for setting the limits for the maximum numbers of grant table frames and maptrack frames of a domain. Signed-off-by: Juergen Gross <jgr...@suse.com> Acked-by: Ian Jackson <ian.jack...@eu.citrix.com> --- V6: - made set_gnttab_limits hypercall mandatory, tak

Re: [Xen-devel] [PATCH][V2] x86/xen: clean up clang build warning

2017-09-20 Thread Juergen Gross
> warning: Value stored to 'p' during its initialization is never read > > Signed-off-by: Colin Ian King <colin.k...@canonical.com> Reviewed-by: Juergen Gross <jgr...@suse.com> Juergen > --- > arch/x86/include/asm/xen/hypercall.h | 4 ++-- > 1 file changed, 2 in

Re: [Xen-devel] [PATCH v7 03/16] xen: clean up grant_table.h

2017-09-19 Thread Juergen Gross
On 19/09/17 17:55, Jan Beulich wrote: On 19.09.17 at 11:58, wrote: >> --- a/xen/common/grant_table.c >> +++ b/xen/common/grant_table.c >> @@ -40,6 +40,45 @@ >> #include >> #include >> >> +/* Per-domain grant information. */ >> +struct grant_table { >> +/* >> +

[Xen-devel] [PATCH 0/2] xen: fix gnttab handling with old dom0 kernels

2017-09-19 Thread Juergen Gross
Juergen Gross (2): xen: add a global indicator for grant copy being available xen: dont try setting max grants multiple times hw/block/xen_disk.c | 30 +- hw/xen/xen_backend.c | 11 +++ include/hw/xen/xen_backend.h | 1 + 3 files changed

[Xen-devel] [PATCH 2/2] xen: dont try setting max grants multiple times

2017-09-19 Thread Juergen Gross
of letting the generic backend code open the gnttab device do it in blk_connect() and close it again in blk_disconnect. Signed-off-by: Juergen Gross <jgr...@suse.com> --- hw/block/xen_disk.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hw/block/xen_disk.

[Xen-devel] [PATCH 1/2] xen: add a global indicator for grant copy being available

2017-09-19 Thread Juergen Gross
for the availability of grant copy in xen_be_init() opening the gnttab device just for that purpose and closing it again afterwards. Advertise the availability via a global flag and use that flag in the qdisk backend. Signed-off-by: Juergen Gross <jgr...@suse.com> --- hw/block/xen_disk.c

Re: [Xen-devel] [PATCH v7 12/16] xen: delay allocation of grant table sub structures

2017-09-19 Thread Juergen Gross
On 19/09/17 12:28, Paul Durrant wrote: >> -Original Message- >> From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of >> Juergen Gross >> Sent: 19 September 2017 10:59 >> To: xen-de...@lists.xenproject.org >> Cc: Juergen Gross <jgr...

Re: [Xen-devel] [PATCH v7 04/16] xen: add new domctl hypercall to set grant table resource limits

2017-09-19 Thread Juergen Gross
On 19/09/17 12:14, Paul Durrant wrote: >> -Original Message- >> From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of >> Juergen Gross >> Sent: 19 September 2017 10:59 >> To: xen-de...@lists.xenproject.org >> Cc: Juergen Gross <jgr...

[Xen-devel] [PATCH v7 00/16] xen: better grant v2 support

2017-09-19 Thread Juergen Gross
of different v1 and v2 limits - double default limit for huge hosts Juergen Gross (16): xen: correct gnttab_get_status_frames() xen: move XENMAPSPACE_grant_table code into grant_table.c xen: clean up grant_table.h xen: add new domctl hypercall to set grant table resource limits xen: add

[Xen-devel] [PATCH v7 09/16] libxl: add max possible mfn to libxl_physinfo

2017-09-19 Thread Juergen Gross
Add the maximum possible mfn of the host to the libxl_physinfo data structure. Signed-off-by: Juergen Gross <jgr...@suse.com> --- tools/libxl/libxl.c | 1 + tools/libxl/libxl.h | 9 + tools/libxl/libxl_types.idl | 1 + 3 files changed, 11 insertions(+) diff --git a

[Xen-devel] [PATCH v7 11/16] libxl: add libxl support for setting grant table resource limits

2017-09-19 Thread Juergen Gross
Add new domain config items for setting the limits for the maximum numbers of grant table frames and maptrack frames of a domain. Signed-off-by: Juergen Gross <jgr...@suse.com> --- V6: - made set_gnttab_limits hypercall mandatory, taking defaults from xl.conf V4: - rename configuration

[Xen-devel] [PATCH v7 10/16] xl: add global grant limit config items

2017-09-19 Thread Juergen Gross
-off-by: Juergen Gross <jgr...@suse.com> --- V7: - don't use xc_maximum_ram_page() but max_possible_mfn from physinfo --- docs/man/xl.conf.pod.5 | 12 tools/xl/xl.c | 15 +++ tools/xl/xl.h | 2 ++ 3 files changed, 29 insertions(+) diff --git a/do

[Xen-devel] [PATCH v7 06/16] xen: add max possible mfn to struct xen_sysctl_physinfo

2017-09-19 Thread Juergen Gross
Add the maximum possible mfn to struct xen_sysctl_physinfo in order to enable Xen tools to size the grant table frame limits for a domU. Signed-off-by: Juergen Gross <jgr...@suse.com> --- xen/common/sysctl.c | 1 + xen/include/public/sysctl.h | 2 ++ 2 files changed, 3 inse

[Xen-devel] [PATCH v7 15/16] xen: make grant table limits boot parameters dom0 only

2017-09-19 Thread Juergen Gross
parameters remove the documentation of gnttab_max_nr_frames as it isn't existing any longer. Signed-off-by: Juergen Gross <jgr...@suse.com> --- V7: - add boot parameter documentation changes --- docs/misc/xen-command-line.markdown | 15 +++ xen/arch/arm/domain_build.c

[Xen-devel] [PATCH v7 01/16] xen: correct gnttab_get_status_frames()

2017-09-19 Thread Juergen Gross
In gnttab_get_status_frames() all accesses to nr_status_frames should be done with the grant table lock held. While at it correct coding style: labels should be indented by one space. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Paul Durrant <paul.durr...@citrix.com&

[Xen-devel] [PATCH v7 05/16] xen: add function for obtaining highest possible memory address

2017-09-19 Thread Juergen Gross
needed for dom0 to decide sizing of grant frame limits of guests and for pv domains for selecting the grant interface version to use. Signed-off-by: Juergen Gross <jgr...@suse.com> --- xen/arch/x86/mm.c| 11 +++ xen/common/memory.c | 8 xen/include/asm-arm/mm.

[Xen-devel] [PATCH v7 02/16] xen: move XENMAPSPACE_grant_table code into grant_table.c

2017-09-19 Thread Juergen Gross
The x86 and arm versions of XENMAPSPACE_grant_table handling are nearly identical. Move the code into a function in grant_table.c and add an architecture dependant hook to handle the differences. Switch to mfn_t in order to be more type safe. Signed-off-by: Juergen Gross <jgr...@suse.com>

[Xen-devel] [PATCH v7 03/16] xen: clean up grant_table.h

2017-09-19 Thread Juergen Gross
Many definitions can be moved from xen/grant_table.h to common/grant_table.c now, as they are no longer used in other sources. Rearrange the elements of struct grant_table to minimize holes due to alignment of elements. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Paul D

[Xen-devel] [PATCH v7 16/16] xen: add new Xen cpuid node for max address width info

2017-09-19 Thread Juergen Gross
the maximum physical address width. The maximum frame width needs to take memory hotplug into account. Signed-off-by: Juergen Gross <jgr...@suse.com> --- xen/arch/x86/traps.c| 4 xen/include/public/arch-x86/cpuid.h | 11 ++- 2 files changed, 14 insertions

[Xen-devel] [PATCH v7 07/16] libxc: add libxc support for setting grant table resource limits

2017-09-19 Thread Juergen Gross
Add a new libxc function xc_domain_set_gnttbl_limits() setting the limits for the maximum numbers of grant table frames and maptrack frames of a domain. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Paul Durrant <paul.durr...@citrix.com> Acked-by: Wei Liu <wei.

[Xen-devel] [PATCH v7 12/16] xen: delay allocation of grant table sub structures

2017-09-19 Thread Juergen Gross
Delay the allocation of the grant table sub structures in order to allow modifying parameters needed for sizing of these structures at a per domain basis. Allocate the structures from gnttab_setup_table() and the table frames only from gnttab_grow_table(). Signed-off-by: Juergen Gross <

[Xen-devel] [PATCH v7 13/16] xen/arm: move arch specific grant table bits into grant_table.c

2017-09-19 Thread Juergen Gross
Instead of attaching the ARM specific grant table data to the domain structure add it to struct grant_table. Add the needed arch functions to the asm-*/grant_table.h includes. Signed-off-by: Juergen Gross <jgr...@suse.com> --- V7: - re-add #include in grant_table.h (Julien Grall) --- xe

[Xen-devel] [PATCH v7 14/16] xen: make grant resource limits per domain

2017-09-19 Thread Juergen Gross
Instead of using the same global resource limits of grant tables (max. number of grant frames, max. number of maptrack frames) for all domains make these limits per domain. Set those per-domain limits in grant_table_set_limits(). Signed-off-by: Juergen Gross <jgr...@suse.com> --- V6: - s

[Xen-devel] [PATCH v7 04/16] xen: add new domctl hypercall to set grant table resource limits

2017-09-19 Thread Juergen Gross
Add a domctl hypercall to set the domain's resource limits regarding grant tables. Signed-off-by: Juergen Gross <jgr...@suse.com> Acked-by: Daniel De Graaf <dgde...@tycho.nsa.gov> --- V6: - moved earlier in series to support set_gnttab_limits being mandatory for domain creatio

[Xen-devel] [PATCH v7 08/16] tools: set grant limits for xenstore stubdom

2017-09-19 Thread Juergen Gross
). Signed-off-by: Juergen Gross <jgr...@suse.com> Acked-by: Wei Liu <wei.l...@citrix.com> --- tools/helpers/init-xenstore-domain.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/tools/helpers/init-xenstore-domain.c b/tools/helpers/init-xenstore-domain.c index 8a41ee7d3a

Re: [Xen-devel] [xen-unstable test] 113562: regressions - FAIL

2017-09-18 Thread Juergen Gross
On 18/09/17 13:05, George Dunlap wrote: > On 09/18/2017 11:46 AM, Roger Pau Monné wrote: >> On Mon, Sep 18, 2017 at 11:15:03AM +0100, George Dunlap wrote: >>> On 09/18/2017 10:45 AM, Roger Pau Monné wrote: On Mon, Sep 18, 2017 at 10:37:58AM +0100, Wei Liu wrote: > On Mon, Sep 18, 2017 at

Re: [Xen-devel] [PATCH] x86/xen: clean up clang build warning

2017-09-18 Thread Juergen Gross
> warning: Value stored to 'p' during its initialization is never read > > Signed-off-by: Colin Ian King <colin.k...@canonical.com> With the code style issue pointed out below fixed: Reviewed-by: Juergen Gross <jgr...@suse.com> > --- > arch/x86/include/asm/xen/h

Re: [Xen-devel] [PATCH 4/4] xen: select grant interface version

2017-09-15 Thread Juergen Gross
On 15/09/17 15:21, Jan Beulich wrote: On 15.09.17 at 15:00, wrote: >> So I've found the data I've searched in the hypervisor. The maximum >> frame number to expect can be calculated from max_page, mem_hotplug >> and the maximum physical address from cpuid node 0x8008. If

Re: [Xen-devel] [PATCH 4/4] xen: select grant interface version

2017-09-15 Thread Juergen Gross
On 13/09/17 11:23, Juergen Gross wrote: > On 12/09/17 20:54, Andrew Cooper wrote: >> On 08/09/17 15:48, Juergen Gross wrote: >>> static void gnttab_request_version(void) >>> { >>> - int rc; >>> + long rc; >>> struct gnttab_set_

Re: [Xen-devel] Feature control on PV devices

2017-09-15 Thread Juergen Gross
On 15/09/17 13:19, Wei Liu wrote: > On Thu, Sep 14, 2017 at 05:18:44PM +0100, Joao Martins wrote: >> On 09/14/2017 05:10 PM, Wei Liu wrote: >>> On Thu, Sep 07, 2017 at 05:53:54PM +0100, Joao Martins wrote: Hey! We wanted to brought up this small proposal regarding the lack of

Re: [Xen-devel] [PATCH v6 10/12] xen/arm: move arch specific grant table bits into grant_table.c

2017-09-15 Thread Juergen Gross
On 15/09/17 10:49, Julien Grall wrote: > Hi Juergen, > > On 15/09/2017 08:22, Juergen Gross wrote: >> On 14/09/17 19:31, Julien Grall wrote: >>> Hi Juergen, >>> >>> On 13/09/17 16:46, Juergen Gross wrote: >>>> diff --git a/xen/include/

Re: [Xen-devel] [PATCH v6 02/12] xen: move XENMAPSPACE_grant_table code into grant_table.c

2017-09-15 Thread Juergen Gross
On 14/09/17 19:20, Julien Grall wrote: > Hi Juergen, > > On 13/09/17 16:46, Juergen Gross wrote: >> diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c >> index 00ff075bd9..a462ea7905 100644 >> --- a/xen/common/grant_table.c >> +++ b/xen/common/gra

Re: [Xen-devel] [PATCH v6 10/12] xen/arm: move arch specific grant table bits into grant_table.c

2017-09-15 Thread Juergen Gross
On 14/09/17 19:31, Julien Grall wrote: > Hi Juergen, > > On 13/09/17 16:46, Juergen Gross wrote: >> diff --git a/xen/include/xen/grant_table.h >> b/xen/include/xen/grant_table.h >> index df11b31264..f3f2fb9ebc 100644 >> --- a/xen/include/xen/grant_table.h >&

Re: [Xen-devel] [PATCH] xen: don't compile pv-specific parts if XEN_PV isn't configured

2017-09-14 Thread Juergen Gross
On 14/09/17 18:31, Tycho Andersen wrote: > Hi Juergen, > > On Thu, Sep 14, 2017 at 02:38:58PM +0200, Juergen Gross wrote: >> xenbus_client.c contains some functions specific for pv guests. >> Enclose them with #ifdef CONFIG_XEN_PV to avoid compiling them when >> they

Re: [Xen-devel] [PATCH] xen: don't compile pv-specific parts if XEN_PV isn't configured

2017-09-14 Thread Juergen Gross
On 14/09/17 16:00, Boris Ostrovsky wrote: > On 09/14/2017 08:38 AM, Juergen Gross wrote: >> xenbus_client.c contains some functions specific for pv guests. >> Enclose them with #ifdef CONFIG_XEN_PV to avoid compiling them when >> they are not needed (e.g. on ARM). >>

[Xen-devel] [PATCH] xen: don't compile pv-specific parts if XEN_PV isn't configured

2017-09-14 Thread Juergen Gross
xenbus_client.c contains some functions specific for pv guests. Enclose them with #ifdef CONFIG_XEN_PV to avoid compiling them when they are not needed (e.g. on ARM). Signed-off-by: Juergen Gross <jgr...@suse.com> --- drivers/xen/xenbus/xenbus_client.c

Re: [Xen-devel] [PATCH v6 05/11] arm64/mm: Add support for XPFO

2017-09-14 Thread Juergen Gross
On 14/09/17 12:41, Julien Grall wrote: > Hi, > > CC Juergen, Boris and Stefano. > > On 08/09/17 18:24, Tycho Andersen wrote: >> On Fri, Sep 08, 2017 at 12:53:47AM -0700, Christoph Hellwig wrote: +/* + * Lookup the page table entry for a virtual address and return a pointer to

Re: [Xen-devel] [PATCH] custom parameter handling fixes

2017-09-14 Thread Juergen Gross
with, I also realized that there were other issues with > "dom0_nodes=" and "rmrr=", partly pre-existing, but partly also due to > those recent changes not having gone far enough. > > Signed-off-by: Jan Beulich <jbeul...@suse.com

Re: [Xen-devel] [PATCH 2/4] xen: limit grant v2 interface to the v1 functionality

2017-09-14 Thread Juergen Gross
On 13/09/17 18:20, Boris Ostrovsky wrote: > On 09/13/2017 10:45 AM, Juergen Gross wrote: >> On 13/09/17 15:50, Boris Ostrovsky wrote: >>> On 09/13/2017 09:38 AM, Juergen Gross wrote: >>>> On 13/09/17 15:22, Boris Ostrovsky wrote: >>>>> On 09/12/2017 0

Re: [Xen-devel] [PATCH 1/3] credit2: libxc related changes to add support for runqueue per cpupool.

2017-09-14 Thread Juergen Gross
On 12/09/17 02:45, anshulmakkar wrote: > libxc receives scheduler specific configuration parametes from > libxl. > > Signed-off-by: Anshul Makkar > --- > tools/libxc/include/xenctrl.h | 6 +- > tools/libxc/xc_cpupool.c | 4 +++- >

Re: [Xen-devel] [PATCH 2/3] credit2: libxl related changes to add support for runqueue per cpupool.

2017-09-14 Thread Juergen Gross
On 12/09/17 02:45, anshulmakkar wrote: > Introduces scheduler specific parameter at libxl level which are > passed on to libxc. eg runqueue for credit2 > > Signed-off-by: Anshul Makkar > --- > tools/libxl/libxl.h | 2 +- > tools/libxl/libxl_cpupool.c | 15

Re: [Xen-devel] [PATCH 3/3] credit2: xen related changes to add support for runqueue per cpupool.

2017-09-14 Thread Juergen Gross
On 12/09/17 02:45, anshulmakkar wrote: > Handles extra scheduler configuration paramers received > at init stage. > > Signed-off-by: Anshul Makkar > --- > xen/common/cpupool.c| 13 - > xen/common/sched_arinc653.c | 2 +- > xen/common/sched_credit.c

Re: [Xen-devel] [PATCH v6 11/12] xen: make grant resource limits per domain

2017-09-13 Thread Juergen Gross
On 13/09/17 17:46, Juergen Gross wrote: > Instead of using the same global resource limits of grant tables (max. > number of grant frames, max. number of maptrack frames) for all domains > make these limits per domain. This will allow setting individual limits > in the future. For no

Re: [Xen-devel] [PATCH v6 09/12] xen: delay allocation of grant table sub structures

2017-09-13 Thread Juergen Gross
On 13/09/17 17:46, Juergen Gross wrote: > Delay the allocation of the grant table sub structures in order to > allow modifying parameters needed for sizing of these structures at a > per domain basis. Either do it from gnttab_grow_table() or just > before the domain is started the firs

Re: [Xen-devel] implement runqueue per cpupool

2017-09-13 Thread Juergen Gross
On 12/09/17 02:45, anshulmakkar wrote: > Attached patch series introduces the concept of runqueue > per cpupool. > > "runqueue" configuration option can be specified with xl command > while configuring cpupool. This will define the basis for > grouping of cpus (cpu, core, socket, all) in that

Re: [Xen-devel] [PATCH v6 01/12] xen: correct gnttab_get_status_frames()

2017-09-13 Thread Juergen Gross
On 13/09/17 18:01, Paul Durrant wrote: >> -Original Message- >> From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of >> Juergen Gross >> Sent: 13 September 2017 08:47 >> To: xen-devel@lists.xen.org >> Cc: Juergen Gross <jgr...@sus

[Xen-devel] [PATCH v6 02/12] xen: move XENMAPSPACE_grant_table code into grant_table.c

2017-09-13 Thread Juergen Gross
The x86 and arm versions of XENMAPSPACE_grant_table handling are nearly identical. Move the code into a function in grant_table.c and add an architecture dependant hook to handle the differences. Switch to mfn_t in order to be more type safe. Signed-off-by: Juergen Gross <jgr...@suse.

[Xen-devel] [PATCH v6 06/12] tools: set grant limits for xenstore stubdom

2017-09-13 Thread Juergen Gross
). Signed-off-by: Juergen Gross <jgr...@suse.com> --- tools/helpers/init-xenstore-domain.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/tools/helpers/init-xenstore-domain.c b/tools/helpers/init-xenstore-domain.c index 8a41ee7d3a..047ad0cb1d 100644 --- a/tools/helpers/init-xe

[Xen-devel] [PATCH v6 11/12] xen: make grant resource limits per domain

2017-09-13 Thread Juergen Gross
. Signed-off-by: Juergen Gross <jgr...@suse.com> --- V6: - several changes due to new patch order V3: - correct error message (Paul Durrant) --- xen/common/compat/grant_table.c | 31 +++--- xen/common/grant_table.c | 121 -- xen/include/a

[Xen-devel] [PATCH v6 05/12] libxc: add libxc support for setting grant table resource limits

2017-09-13 Thread Juergen Gross
Add a new libxc function xc_domain_set_gnttbl_limits() setting the limits for the maximum numbers of grant table frames and maptrack frames of a domain. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Paul Durrant <paul.durr...@citrix.com> Acked-by: Wei Liu <wei.

[Xen-devel] [PATCH v6 00/12] xen: better grant v2 support

2017-09-13 Thread Juergen Gross
limits - double default limit for huge hosts Juergen Gross (12): xen: correct gnttab_get_status_frames() xen: move XENMAPSPACE_grant_table code into grant_table.c xen: clean up grant_table.h xen: add new domctl hypercall to set grant table resource limits libxc: add libxc support for setting

[Xen-devel] [PATCH v6 04/12] xen: add new domctl hypercall to set grant table resource limits

2017-09-13 Thread Juergen Gross
Add a domctl hypercall to set the domain's resource limits regarding grant tables. It is accepted only as long as neither gnttab_setup_table() has been called for the domain, nor the domain has started to run. Signed-off-by: Juergen Gross <jgr...@suse.com> --- V6: - moved earlier in

[Xen-devel] [PATCH v6 07/12] xl: add global grant limit config items

2017-09-13 Thread Juergen Gross
-off-by: Juergen Gross <jgr...@suse.com> --- docs/man/xl.conf.pod.5 | 12 tools/libxl/libxl.h | 9 - tools/libxl/libxl_mem.c | 5 + tools/xl/xl.c | 14 ++ tools/xl/xl.h | 2 ++ 5 files changed, 41 insertions(+), 1 deletion(-)

[Xen-devel] [PATCH v6 03/12] xen: clean up grant_table.h

2017-09-13 Thread Juergen Gross
Many definitions can be moved from xen/grant_table.h to common/grant_table.c now, as they are no longer used in other sources. Rearrange the elements of struct grant_table to minimize holes due to alignment of elements. Signed-off-by: Juergen Gross <jgr...@suse.com> Reviewed-by: Paul D

[Xen-devel] [PATCH v6 10/12] xen/arm: move arch specific grant table bits into grant_table.c

2017-09-13 Thread Juergen Gross
Instead of attaching the ARM specific grant table data to the domain structure add it to struct grant_table. Add the needed arch functions to the asm-*/grant_table.h includes. Signed-off-by: Juergen Gross <jgr...@suse.com> --- xen/arch/arm/domain.c | 2 -- xen/common/grant_t

[Xen-devel] [PATCH v6 08/12] libxl: add libxl support for setting grant table resource limits

2017-09-13 Thread Juergen Gross
Add new domain config items for setting the limits for the maximum numbers of grant table frames and maptrack frames of a domain. Signed-off-by: Juergen Gross <jgr...@suse.com> --- V6: - made set_gnttab_limits hypercall mandatory, taking defaults from xl.conf V4: - rename configuration

<    1   2   3   4   5   6   7   8   9   10   >