xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: xen-devel@lists.xen.org
Cc: Juergen Gross <jgross@suse.com>,
	sstabellini@kernel.org, wei.liu2@citrix.com,
	George.Dunlap@eu.citrix.com, andrew.cooper3@citrix.com,
	ian.jackson@eu.citrix.com, tim@xen.org, julien.grall@arm.com,
	jbeulich@suse.com, dgdegra@tycho.nsa.gov
Subject: [PATCH v5 0/8] xen: better grant v2 support
Date: Fri,  8 Sep 2017 08:56:26 +0200	[thread overview]
Message-ID: <20170908065634.5420-1-jgross@suse.com> (raw)

Currently Linux has no support for grant v2 as this would reduce the
maximum number of active grants by a factor of 2 compared to v1,
because the number of possible grants are limited by the allowed number
of grant frames and grant entries of v2 need twice as much bytes as
those of v1.

Unfortunately grant v2 is the only way to support either guests with
more than 16TB memory size or PV guests with memory above the 16TB
border, as grant v1 limits the frame number to be 32 bits wide.

In order to remove the disadvantage of grant v2 this patch series
adds support for setting per-domain values regarding grant limits.
Additionally the default limit of grant frames is doubled in case
of hosts with memory above the 16TB border.

Changes in V5:
- patch 6: add set_gnttab_limits to create_domain_common in xen.if
  (Daniel De Graaf)

Changes in V4:
- patch 3: make ret more local (Wei Liu)
- patch 7: use domid_t (Wei Liu)
- patch 8: rename configuration items to use max_ prefixes (Wei Liu)

Changes in V3:
- patch 1: update commit message
- patch 3: move call of grant_table_init() from 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 (8):
  xen: move XENMAPSPACE_grant_table code into grant_table.c
  xen: clean up grant_table.h
  xen: delay allocation of grant table sub structures
  xen: make grant resource limits per domain
  xen: double default grant frame limit for huge hosts
  xen: add new domctl hypercall to set grant table resource limits
  libxc: add libxc support for setting grant table resource limits
  libxl: add libxl support for setting grant table resource limits

 docs/man/xl.cfg.pod.5.in            |  15 ++
 tools/flask/policy/modules/dom0.te  |   2 +-
 tools/flask/policy/modules/xen.if   |   2 +-
 tools/libxc/include/xenctrl.h       |  14 ++
 tools/libxc/xc_domain.c             |  13 ++
 tools/libxl/libxl.h                 |   6 +
 tools/libxl/libxl_dom.c             |   8 +
 tools/libxl/libxl_types.idl         |   3 +
 tools/xl/xl_parse.c                 |   5 +
 tools/xl/xl_sxp.c                   |   2 +
 xen/arch/arm/mm.c                   |  36 +---
 xen/arch/x86/mm.c                   |  41 +----
 xen/common/domain.c                 |  17 +-
 xen/common/domctl.c                 |   6 +
 xen/common/grant_table.c            | 354 +++++++++++++++++++++++++++---------
 xen/include/asm-arm/grant_table.h   |   7 +
 xen/include/asm-x86/grant_table.h   |   5 +
 xen/include/public/domctl.h         |   9 +
 xen/include/xen/grant_table.h       |  91 +--------
 xen/xsm/flask/hooks.c               |   3 +
 xen/xsm/flask/policy/access_vectors |   2 +
 21 files changed, 402 insertions(+), 239 deletions(-)

-- 
2.12.3


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

             reply	other threads:[~2017-09-08  6:56 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-08  6:56 Juergen Gross [this message]
2017-09-08  6:56 ` [PATCH v5 1/8] xen: move XENMAPSPACE_grant_table code into grant_table.c Juergen Gross
2017-09-08 14:49   ` Jan Beulich
     [not found]   ` <59B2C9FF0200007800178E24@suse.com>
2017-09-08 15:14     ` Juergen Gross
2017-09-11 11:41   ` George Dunlap
2017-09-08  6:56 ` [PATCH v5 2/8] xen: clean up grant_table.h Juergen Gross
2017-09-08 15:00   ` Jan Beulich
     [not found]   ` <59B2CC990200007800178E3C@suse.com>
2017-09-11  8:22     ` Juergen Gross
2017-09-08  6:56 ` [PATCH v5 3/8] xen: delay allocation of grant table sub structures Juergen Gross
2017-09-08 15:28   ` Jan Beulich
     [not found]   ` <59B2D34F0200007800178EBC@suse.com>
2017-09-11  9:03     ` Juergen Gross
2017-09-11  9:23       ` Jan Beulich
     [not found]       ` <59B6722B0200007800179767@suse.com>
2017-09-11  9:39         ` Juergen Gross
2017-09-11 11:02           ` Jan Beulich
     [not found]           ` <59B6896302000078001798B7@suse.com>
2017-09-11 11:36             ` Juergen Gross
2017-09-08  6:56 ` [PATCH v5 4/8] xen: make grant resource limits per domain Juergen Gross
2017-09-08 15:44   ` Jan Beulich
     [not found]   ` <59B2D7180200007800178ED3@suse.com>
2017-09-11 10:40     ` Juergen Gross
2017-09-11 11:07       ` Jan Beulich
2017-09-08  6:56 ` [PATCH v5 5/8] xen: double default grant frame limit for huge hosts Juergen Gross
2017-09-08 15:48   ` Jan Beulich
     [not found]   ` <59B2D8050200007800178ED6@suse.com>
2017-09-11 10:41     ` Juergen Gross
2017-09-08  6:56 ` [PATCH v5 6/8] xen: add new domctl hypercall to set grant table resource limits Juergen Gross
2017-09-08 15:55   ` Jan Beulich
     [not found]   ` <59B2D98F0200007800178F19@suse.com>
2017-09-11 10:48     ` Juergen Gross
2017-09-11 11:14       ` Jan Beulich
     [not found]       ` <59B68C4902000078001798F9@suse.com>
2017-09-11 11:31         ` Juergen Gross
2017-09-08  6:56 ` [PATCH v5 7/8] libxc: add libxc support for setting " Juergen Gross
2017-09-08  6:56 ` [PATCH v5 8/8] libxl: add libxl " Juergen Gross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170908065634.5420-1-jgross@suse.com \
    --to=jgross@suse.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien.grall@arm.com \
    --cc=sstabellini@kernel.org \
    --cc=tim@xen.org \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).