# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
# Node ID f028e3732803d61fdf9511f66521dc7b0fa3275c
# Parent ab85c20d33e50fb29b451580ce03f7697a0fc3b5
Correct check for extended-cr3 support in __xen_guest fallback code.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxxxxx>
---
tools/libxc/xc_load_elf.c | 2 +-
xen/common/elf.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff -r ab85c20d33e5 -r f028e3732803 tools/libxc/xc_load_elf.c
--- a/tools/libxc/xc_load_elf.c Mon Oct 09 23:34:00 2006 +0100
+++ b/tools/libxc/xc_load_elf.c Tue Oct 10 10:06:56 2006 +0100
@@ -364,7 +364,7 @@ static int parseelfimage(const char *ima
if ( p != NULL && strncmp(p, "yes", 3) == 0 )
{
dsi->pae_kernel = PAEKERN_yes;
- if ( !strncmp(p+4, "[extended-cr3]", 14) )
+ if ( !strncmp(p+3, "[extended-cr3]", 14) )
dsi->pae_kernel = PAEKERN_extended_cr3;
}
}
diff -r ab85c20d33e5 -r f028e3732803 xen/common/elf.c
--- a/xen/common/elf.c Mon Oct 09 23:34:00 2006 +0100
+++ b/xen/common/elf.c Tue Oct 10 10:06:56 2006 +0100
@@ -304,7 +304,7 @@ int parseelfimage(struct domain_setup_in
if ( p != NULL && strncmp(p, "yes", 3) == 0 )
{
dsi->pae_kernel = PAEKERN_yes;
- if ( !strncmp(p+4, "[extended-cr3]", 14) )
+ if ( !strncmp(p+3, "[extended-cr3]", 14) )
dsi->pae_kernel = PAEKERN_extended_cr3;
}
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|