]> xenbits.xensource.com Git - xen.git/commit
gnttab: allow setting max version per-domain
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 4 Nov 2021 10:48:34 +0000 (11:48 +0100)
committerIan Jackson <iwj@xenproject.org>
Mon, 8 Nov 2021 15:10:05 +0000 (15:10 +0000)
commit7379f9e10a3b13ec8bcea756384b2ace8af7064d
treee3a290f2f7c7a6970131006d6402ab702f146ccb
parentb36c23eada769f647e5352d5691f793be06afd62
gnttab: allow setting max version per-domain

Introduce a new domain create field so that toolstack can specify the
maximum grant table version usable by the domain. This is plumbed into
xl and settable by the user as max_grant_version.

Previously this was only settable on a per host basis using the
gnttab command line option.

Note the version is specified using 4 bits, which leaves room to
specify up to grant table version 15. Given that we only have 2 grant
table versions right now, and a new version is unlikely in the near
future using 4 bits seems more than enough.

xenstored stubdomains are limited to grant table v1 because the
current MiniOS code used to build them only has support for grants v1.
There are existing limits set for xenstored stubdomains at creation
time that already match the defaults in MiniOS.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
19 files changed:
docs/man/xl.cfg.5.pod.in
docs/man/xl.conf.5.pod.in
tools/helpers/init-xenstore-domain.c
tools/include/libxl.h
tools/libs/light/libxl_create.c
tools/libs/light/libxl_dm.c
tools/libs/light/libxl_types.idl
tools/ocaml/libs/xc/xenctrl.ml
tools/ocaml/libs/xc/xenctrl.mli
tools/ocaml/libs/xc/xenctrl_stubs.c
tools/xl/xl.c
tools/xl/xl.h
tools/xl/xl_parse.c
xen/arch/arm/domain_build.c
xen/arch/x86/setup.c
xen/common/domain.c
xen/common/grant_table.c
xen/include/public/domctl.h
xen/include/xen/grant_table.h