Skip to contentSkip to conversation

tmem should default off for 32-bit Xen

PATCH New Dan Magenheimer 1 participant 1 message Jan 5, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tmem should default off for 32-bit Xen

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 <[email protected]>

xen/common/tmem_xen.c +4 -0
diff -r 4feec90815a0 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;
xen/common/tmem_xen.c +4 -0
diff -r 4feec90815a0 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;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel