gnttab: make resource limits per domain
authorJuergen Gross <jgross@suse.com>
Wed, 4 Oct 2017 12:24:13 +0000 (14:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 4 Oct 2017 12:24:13 +0000 (14:24 +0200)
commit18b1be5e324bcbe2f10898b116db641d404b3d30
treebd5b3d377c183c1a239e5ce05968783885607df9
parent4e383df8650d72e47e2ca4ebfc4f6986f791d2f2
gnttab: make resource limits per domain

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(). The global settings are serving as an upper
boundary now which must not be exceeded by a per-domain value. The
default of max_grant_frames is set to the maximum default xl will use.

While updating the semantics of the boot parameters remove the
documentation of the no longer existing gnttab_max_nr_frames and
correct the default gnttab_max_maptrack_frames uses.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com> [non-ARM parts]
Acked-by: Julien Grall <julien.grall@arm.com>
docs/misc/xen-command-line.markdown
xen/arch/arm/domain_build.c
xen/common/compat/grant_table.c
xen/common/grant_table.c
xen/include/asm-arm/grant_table.h
xen/include/asm-x86/grant_table.h
xen/include/xen/grant_table.h