aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/tmem_xen.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-01-06 08:18:04 +0000
committerKeir Fraser <keir.fraser@citrix.com>2010-01-06 08:18:04 +0000
commitbf3f5a47a09bfac278c08679bd142869e55df19d (patch)
treee635ed5baf2c861ecf73afd5023bb062c78bb238 /xen/common/tmem_xen.c
parent8c5fdc54a756be1ce22feba05045bd5a19516dcf (diff)
downloadxen-bf3f5a47a09bfac278c08679bd142869e55df19d.tar.gz
xen-bf3f5a47a09bfac278c08679bd142869e55df19d.tar.bz2
xen-bf3f5a47a09bfac278c08679bd142869e55df19d.zip
tmem: Only enable by default for x86_64
While tmem has gotten limited testing with a 32-bit Xen, it has severe limitations due to 32-bit heap restrictions. So, turn it off by default for 32-bit so nobody accidentally runs into this. Signed-off by: Dan Magenheimer <dan.magenheimer@oracle.com>
Diffstat (limited to 'xen/common/tmem_xen.c')
-rw-r--r--xen/common/tmem_xen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/common/tmem_xen.c b/xen/common/tmem_xen.c
index b4229b8b3f..ba3f03ca97 100644
--- a/xen/common/tmem_xen.c
+++ b/xen/common/tmem_xen.c
@@ -14,7 +14,11 @@
#define EXPORT /* indicates code other modules are dependent upon */
+#ifdef __x86_64__
EXPORT int opt_tmem = 1;
+#else
+EXPORT int opt_tmem = 0;
+#endif
boolean_param("tmem", opt_tmem);
EXPORT int opt_tmem_compress = 0;