rpms/kernel/devel fix_xen_guest_on_old_EC2.patch, NONE, 1.1 kernel.spec, 1.2022, 1.2023
Justin M. Forbes
jforbes at fedoraproject.org
Fri Jun 11 19:29:23 UTC 2010
Author: jforbes
Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv3862
Modified Files:
kernel.spec
Added Files:
fix_xen_guest_on_old_EC2.patch
Log Message:
Disable xsave for so that kernel will boot on ancient EC2 hosts.
fix_xen_guest_on_old_EC2.patch:
enlighten.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE fix_xen_guest_on_old_EC2.patch ---
Legacy hypervisors (RHEL 5.0 and RHEL 5.1) do not handle guest writes to
cr4 gracefully. If a guest attempts to write a bit of cr4 that is
unsupported, then the HV is so offended it crashes the domain. While
later guest kernels (such as RHEL6) don't assume the HV supports all
features, they do expect nicer responses. That assumption introduced
code that probes whether or not xsave is supported early in the boot. So
now when attempting to boot a RHEL6 guest on RHEL5.0 or RHEL5.1 an early
crash will occur.
This patch is quite obviously an undesirable hack. The real fix for this
problem should be in the HV, and is, in later HVs. However, to support
running on old HVs, RHEL6 can take this small change. No impact will
occur for running on any RHEL HV (not even RHEL 5.5 supports xsave).
There is only potential for guest performance loss on upstream Xen.
---
arch/x86/xen/enlighten.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 52f8e19..6db3d67 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -802,6 +802,7 @@ static void xen_write_cr4(unsigned long cr4)
{
cr4 &= ~X86_CR4_PGE;
cr4 &= ~X86_CR4_PSE;
+ cr4 &= ~X86_CR4_OSXSAVE;
native_write_cr4(cr4);
}
--
1.6.6.1
Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel.spec,v
retrieving revision 1.2022
retrieving revision 1.2023
diff -u -p -r1.2022 -r1.2023
--- kernel.spec 9 Jun 2010 19:59:34 -0000 1.2022
+++ kernel.spec 11 Jun 2010 19:29:22 -0000 1.2023
@@ -677,6 +677,7 @@ Patch1517: hdpvr-ir-enable.patch
# virt + ksm patches
Patch1550: virtqueue-wrappers.patch
Patch1554: virt_console-rollup.patch
+Patch1555: fix_xen_guest_on_old_EC2.patch
# DRM
Patch1800: drm-next.patch
@@ -1283,6 +1284,7 @@ ApplyPatch hdpvr-ir-enable.patch
# Assorted Virt Fixes
ApplyPatch virtqueue-wrappers.patch
ApplyPatch virt_console-rollup.patch
+ApplyPatch fix_xen_guest_on_old_EC2.patch
ApplyPatch drm-next.patch
ApplyPatch drm-disable-radeon_pm.patch
@@ -1973,6 +1975,9 @@ fi
# || ||
%changelog
+* Fri Jun 11 2010 Justin M. Forbes <jforbes at redhat.com>
+- Disable xsave for so that kernel will boot on ancient EC2 hosts.
+
* Wed Jun 09 2010 John W. Linville <linville at redhat.com>
- Disable rt20xx and rt35xx chipset support in rt2800 drivers (#570869)
More information about the scm-commits
mailing list