tools/xenstore: set maximum number of grants needed
authorJuergen Gross <jgross@suse.com>
Thu, 24 Sep 2020 14:36:48 +0000 (16:36 +0200)
committerWei Liu <wl@xen.org>
Wed, 30 Sep 2020 15:34:50 +0000 (15:34 +0000)
commit11852c7bb070a18c3708b4c001772a23e7d4fc27
tree16fb23874b8a0bbc3f040d5001eb2ef59e12c47b
parentbfcc97c08c2258316d1cd92c23a441d97ad6ff4e
tools/xenstore: set maximum number of grants needed

When running as a stubdom Xenstore should set the maximum number of
grants needed via a call of xengnttab_set_max_grants(), as otherwise
the number of domains which can be supported will be 128 only (the
default number of grants supported by Mini-OS).

We use one grant per domain so the theoretical maximum number is
DOMID_FIRST_RESERVED.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/xenstore/xenstored_domain.c