aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_gnttab.c
diff options
context:
space:
mode:
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>2011-01-17 17:28:30 +0000
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>2011-01-17 17:28:30 +0000
commit618a3fb38bcd860320faf8dbbe1b85c79fb34cb9 (patch)
treefba32ebc7899a528508e7a0f2c35c0918d766df4 /tools/libxc/xc_gnttab.c
parent38da12ffee01c2d88ba6b6441142e58e59212af9 (diff)
downloadxen-618a3fb38bcd860320faf8dbbe1b85c79fb34cb9.tar.gz
xen-618a3fb38bcd860320faf8dbbe1b85c79fb34cb9.tar.bz2
xen-618a3fb38bcd860320faf8dbbe1b85c79fb34cb9.zip
libxc: Remove set_max_grants in linux
The maximum number of grants is now constrained domain-wide in linux, so set_max_grants should be a noop there. Previously, this constraint was per-file-description. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xc_gnttab.c')
-rw-r--r--tools/libxc/xc_gnttab.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxc/xc_gnttab.c b/tools/libxc/xc_gnttab.c
index ae152fd2a5..4f55fcef15 100644
--- a/tools/libxc/xc_gnttab.c
+++ b/tools/libxc/xc_gnttab.c
@@ -184,6 +184,8 @@ int xc_gnttab_munmap(xc_gnttab *xcg,
int xc_gnttab_set_max_grants(xc_gnttab *xcg, uint32_t count)
{
+ if (!xcg->ops->u.gnttab.set_max_grants)
+ return 0;
return xcg->ops->u.gnttab.set_max_grants(xcg, xcg->ops_handle, count);
}