xen-gntdev: Change page limit to be global instead of per-open
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 3 Feb 2011 17:18:59 +0000 (12:18 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 14 Feb 2011 19:08:49 +0000 (14:08 -0500)
commitef91082e90491ac99343a13f9aeff4669835c6cc
treed5b293c5e27225f6631c402f36ccdb9ebac25d1b
parent100b33c8bd8a3235fd0b7948338d6cbb3db3c63d
xen-gntdev: Change page limit to be global instead of per-open

Because there is no limitation on how many times a user can open a
given device file, an per-file-description limit on the number of
pages granted offers little to no benefit. Change to a global limit
and remove the ioctl() as the parameter can now be changed via sysfs.

Xen tools changeset 22768:f8d801e5573e is needed to eliminate the
error this change produces in xc_gnttab_set_max_grants.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/gntdev.c