rpms/kernel/FC-5 xen-build-with-O2.patch, NONE, 1.1 kernel-2.6.spec, 1.2162, 1.2163

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Thu Jul 27 05:09:40 UTC 2006


Author: riel

Update of /cvs/dist/rpms/kernel/FC-5
In directory cvs.devel.redhat.com:/tmp/cvs-serv31033

Modified Files:
	kernel-2.6.spec 
Added Files:
	xen-build-with-O2.patch 
Log Message:
reduce hypervisor stack use with -O2, this really fixes bug (#198932)

xen-build-with-O2.patch:
 Rules.mk |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE xen-build-with-O2.patch ---
Always build the hypervisor with -O2.  This reduces stack consumption
significantly and seems to stop the stack overflows that made Xen crash
frequently in some configurations.

Signed-off-by: Rik van Riel <riel at redhat.com>

--- xen/Rules.mk.noop	2006-07-26 17:44:02.000000000 -0400
+++ xen/Rules.mk	2006-07-26 17:44:16.000000000 -0400
@@ -52,7 +52,7 @@
 ALL_OBJS-$(ACM_SECURITY) += $(BASEDIR)/acm/built_in.o
 ALL_OBJS-y               += $(BASEDIR)/arch/$(TARGET_ARCH)/built_in.o
 
-CFLAGS-y               += -g -D__XEN__
+CFLAGS-y               += -g -D__XEN__ -O2
 CFLAGS-$(ACM_SECURITY) += -DACM_SECURITY
 CFLAGS-$(verbose)      += -DVERBOSE
 CFLAGS-$(crash_debug)  += -DCRASH_DEBUG


Index: kernel-2.6.spec
===================================================================
RCS file: /cvs/dist/rpms/kernel/FC-5/kernel-2.6.spec,v
retrieving revision 1.2162
retrieving revision 1.2163
diff -u -r1.2162 -r1.2163
--- kernel-2.6.spec	26 Jul 2006 03:11:35 -0000	1.2162
+++ kernel-2.6.spec	27 Jul 2006 05:09:37 -0000	1.2163
@@ -406,6 +406,7 @@
 Patch10001: linux-2.6-random-patches.patch
 
 # Xen hypervisor patches
+Patch20000: xen-build-with-O2.patch
 
 # END OF PATCH DEFINITIONS
 
@@ -670,6 +671,7 @@
 cp -rl xen-%{xen_version} xen
 
 # Any necessary hypervisor patches go here
+%patch20000 -p0
 %endif
 
 cd linux-%{kversion}.%{_target_cpu}
@@ -1217,11 +1219,11 @@
   cd xen
   mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
 # FixMe: Juan Quintela (when no PAE is not needed anymore)
-  make verbose=y crash_debug=y pae=y
+  make debug=y verbose=y crash_debug=y pae=y
   install -m 644 xen.gz $RPM_BUILD_ROOT/boot/xen.gz-%{KVERREL}-PAE
   install -m 755 xen-syms $RPM_BUILD_ROOT/boot/xen-syms-%{KVERREL}-PAE
   make clean
-  make verbose=y crash_debug=y
+  make debug=y verbose=y crash_debug=y
   install -m 644 xen.gz $RPM_BUILD_ROOT/boot/xen.gz-%{KVERREL}
   install -m 755 xen-syms $RPM_BUILD_ROOT/boot/xen-syms-%{KVERREL}
   cd ..
@@ -1548,6 +1550,9 @@
 %endif
 
 %changelog
+* Thu Jul 27 2006 Rik van Riel <riel at redhat.com>
+- reduce hypervisor stack use with -O2, this really fixes bug (#198932)
+
 * Tue Jul 25 2006 Rik van Riel <riel at redhat.com>
 - disable debug=y hypervisor build option because of stack overflow (#198932)
 




More information about the fedora-cvs-commits mailing list