diff options
author | john.levon@sun.com <john.levon@sun.com> | 2007-01-08 12:54:41 -0800 |
---|---|---|
committer | john.levon@sun.com <john.levon@sun.com> | 2007-01-08 12:54:41 -0800 |
commit | 5c8a39cf80c48d7048f03ed77d7a552d0c1dcc0e (patch) | |
tree | a5134c23207d88a8801c81697c87af510569ad01 /xen/common | |
parent | 68a749f1782d8639264fd9ef924db97c3b8048be (diff) | |
download | xen-5c8a39cf80c48d7048f03ed77d7a552d0c1dcc0e.tar.gz xen-5c8a39cf80c48d7048f03ed77d7a552d0c1dcc0e.tar.bz2 xen-5c8a39cf80c48d7048f03ed77d7a552d0c1dcc0e.zip |
Use strstr() to look for "bimodal" string in ELF notes, to allow guests to use
"yes,bimodal", so they are correctly identified as PAE on older hypervisors.
Signed-off-by: John Levon <john.levon@sun.com>
Diffstat (limited to 'xen/common')
-rw-r--r-- | xen/common/elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/elf.c b/xen/common/elf.c index 6a55053e74..8414f5e933 100644 --- a/xen/common/elf.c +++ b/xen/common/elf.c @@ -300,7 +300,7 @@ int parseelfimage(struct domain_setup_info *dsi) if ( dsi->__elfnote_section ) { p = xen_elfnote_string(dsi, XEN_ELFNOTE_PAE_MODE); - if ( p != NULL && strncmp(p, "bimodal", 7) == 0 ) + if ( p != NULL && strstr(p, "bimodal") != NULL ) dsi->pae_kernel = PAEKERN_bimodal; else if ( p != NULL && strncmp(p, "yes", 3) == 0 ) dsi->pae_kernel = PAEKERN_extended_cr3; |