aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/grant_table.h
diff options
context:
space:
mode:
authorHollis Blanchard <hollisb@us.ibm.com>2007-02-19 16:49:12 +0900
committerHollis Blanchard <hollisb@us.ibm.com>2007-02-19 16:49:12 +0900
commit6b59b9f752226c53d265fe6609d7e88f01fb0ab9 (patch)
treef609723a4e672675d63622550ae8fc64481b41cc /xen/include/xen/grant_table.h
parent188ac9feda87c12b11af6f4c05ce04e653ca7b53 (diff)
downloadxen-6b59b9f752226c53d265fe6609d7e88f01fb0ab9.tar.gz
xen-6b59b9f752226c53d265fe6609d7e88f01fb0ab9.tar.bz2
xen-6b59b9f752226c53d265fe6609d7e88f01fb0ab9.zip
GNTTAB: PowerPC patch for dynamic grant tables.
Grant table expansion is disabled for now, since we currently make assumptions about grant table MFNs being contiguous. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Diffstat (limited to 'xen/include/xen/grant_table.h')
-rw-r--r--xen/include/xen/grant_table.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/include/xen/grant_table.h b/xen/include/xen/grant_table.h
index 5ae9149bc1..0164668e2c 100644
--- a/xen/include/xen/grant_table.h
+++ b/xen/include/xen/grant_table.h
@@ -56,10 +56,14 @@ struct active_grant_entry {
#define INITIAL_NR_GRANT_ENTRIES ((INITIAL_NR_GRANT_FRAMES << PAGE_SHIFT) / \
sizeof(grant_entry_t))
+#ifndef DEFAULT_MAX_NR_GRANT_FRAMES /* to allow arch to override */
/* Default maximum size of a grant table. [POLICY] */
#define DEFAULT_MAX_NR_GRANT_FRAMES 32
+#endif
+#ifndef max_nr_grant_frames /* to allow arch to override */
/* The maximum size of a grant table. */
extern unsigned int max_nr_grant_frames;
+#endif
/*
* Tracks a mapping of another domain's grant reference. Each domain has a