rpms/kernel-xen-2.6/devel linux-2.6-xen-0020-reserve_early-kernel-text-and-data-segments.patch, NONE, 1.1 kernel.spec, 1.28, 1.29

Eduardo Habkost (ehabkost) fedora-extras-commits at redhat.com
Thu Apr 3 23:01:23 UTC 2008


Author: ehabkost

Update of /cvs/pkgs/rpms/kernel-xen-2.6/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18187

Modified Files:
	kernel.spec 
Added Files:
	linux-2.6-xen-0020-reserve_early-kernel-text-and-data-segments.patch 
Log Message:
x86_64: Reserve kernel text and data segments at boot (bug #438000)

As the main x86_64 xen patch is generated from the rebase on markmc's
tree, added the fix as a separated patch to make it easier to see which
patches are on markmc's git tree and which patches aren't.



linux-2.6-xen-0020-reserve_early-kernel-text-and-data-segments.patch:

--- NEW FILE linux-2.6-xen-0020-reserve_early-kernel-text-and-data-segments.patch ---
>From 689859d0c8f9df6e6fe75a9d58fe06e1469eb512 Mon Sep 17 00:00:00 2001
From: Eduardo Habkost <ehabkost at redhat.com>
Date: Thu, 3 Apr 2008 19:10:10 -0300
Subject: [PATCH] reserve_early() kernel text and data segments

Just like on start_kernel()

Signed-off-by: Eduardo Habkost <ehabkost at redhat.com>
---
 arch/x86/xen/enlighten.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Index: linux-2.6.24.x86_64/arch/x86/xen/enlighten.c
===================================================================
--- linux-2.6.24.x86_64.orig/arch/x86/xen/enlighten.c
+++ linux-2.6.24.x86_64/arch/x86/xen/enlighten.c
@@ -47,6 +47,7 @@
 #include <asm/tlbflush.h>
 #include <asm/reboot.h>
 #include <asm/proto.h>
+#include <asm/sections.h>
 
 #include "xen-ops.h"
 #include "mmu.h"
@@ -1379,6 +1380,8 @@ asmlinkage void __init xen_start_kernel(
 	   possible map and a non-dummy shared_info. */
 	per_cpu(xen_vcpu, 0) = &HYPERVISOR_shared_info->vcpu_info[0];
 
+	reserve_early(__pa_symbol(&_text), __pa_symbol(&_end), "TEXT DATA BSS");
+
 	xprintk("xen_init_pt:\n");
 	xen_init_pt();
 	xprintk("xen_init_pt returned.\n");


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel-xen-2.6/devel/kernel.spec,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- kernel.spec	3 Apr 2008 09:48:58 -0000	1.28
+++ kernel.spec	3 Apr 2008 23:00:45 -0000	1.29
@@ -687,6 +687,7 @@
 Patch5016: linux-2.6-xen-0017-xen-x86_64-Add-64-bit-version-of-privcmd_hypercall.patch
 Patch5017: linux-2.6-xen-0018-xen-x86_64-Only-define-load_user_cs_desc-on-32-bi.patch
 Patch5018: linux-2.6-xen-0019-xen-x86_64-Initial-x86_64-support-for-Xen-paravirt_.patch
+Patch5019: linux-2.6-xen-0020-reserve_early-kernel-text-and-data-segments.patch
 # kernel-xen patches end
 
 # Xen hypervisor patches (20000+)
@@ -1244,6 +1245,7 @@
 ApplyPatch linux-2.6-xen-0018-xen-x86_64-Only-define-load_user_cs_desc-on-32-bi.patch
 %ifarch x86_64
 ApplyPatch linux-2.6-xen-0019-xen-x86_64-Initial-x86_64-support-for-Xen-paravirt_.patch
+ApplyPatch linux-2.6-xen-0020-reserve_early-kernel-text-and-data-segments.patch
 %endif
 # kernel-xen apply end
 
@@ -1853,6 +1855,9 @@
 %kernel_variant_files -a /%{image_install_path}/xen*-%{KVERREL}.xen -e /etc/ld.so.conf.d/kernelcap-%{KVERREL}.xen.conf %{with_xen} xen
 
 %changelog
+* Thu Apr 03 2008 Eduardo Habkost <ehabkost at redhat.com>
+- x86_64: Reserve kernel text and data segments at boot (bug #438000)
+
 * Thu Apr  3 2008 Mark McLoughlin <markmc at redhat.com>
 - x86_64 updates
 




More information about the fedora-extras-commits mailing list