Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 277241 Details for
Bug 410811
[Stratus 5.2 Regression] Xen 3.1.2 hypervisor corrupts reserved memory below 16M
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Avoid handing reserved pages to the boot allocator
xen_lomem_e820_fix.diff (text/plain), 1.63 KB, created by
Kimball Murray
on 2007-12-04 18:50:09 UTC
(
hide
)
Description:
Avoid handing reserved pages to the boot allocator
Filename:
MIME Type:
Creator:
Kimball Murray
Created:
2007-12-04 18:50:09 UTC
Size:
1.63 KB
patch
obsolete
>diff -Naur xen/arch/x86/setup.c ../kernel-2.6.18-55bb/xen/arch/x86/setup.c >--- xen/arch/x86/setup.c 2007-10-23 15:23:10.000000000 -0400 >+++ ../kernel-2.6.18-55bb/xen/arch/x86/setup.c 2007-11-30 16:04:21.000000000 -0500 >@@ -441,6 +441,39 @@ > return p; > } > >+/* >+ * Add some low memory pages (from "lower" to "upper") to the boot >+ * allocator, but be careful not to add any reserved areas (pay >+ * attention to e820 map). >+ */ >+static void seed_boot_allocator(unsigned long lower, unsigned long upper) >+{ >+ int i; >+ >+ for ( i = 0; i < e820_raw_nr; i++ ) >+ { >+ uint64_t start, end; >+ >+ if (e820_raw[i].type != E820_RAM) >+ continue; >+ >+ start = e820_raw[i].addr; >+ if (start >= upper) >+ continue; >+ if (start < lower) >+ start = lower; >+ >+ end = e820_raw[i].addr + e820_raw[i].size; >+ if (end <= lower) >+ continue; >+ >+ if (end > upper) >+ end = upper; >+ >+ init_boot_pages(start, end); >+ } >+} >+ > void __init __start_xen(unsigned long mbi_p) > { > char *memmap_type = NULL; >@@ -810,9 +843,10 @@ > xenheap_phys_end += xen_phys_start; > reserve_in_boot_e820(xen_phys_start, > xen_phys_start + (opt_xenheap_megabytes<<20)); >- init_boot_pages(1<<20, 16<<20); /* Initial seed: 15MB */ >+ /* Initial seed, lower 1M - 16M, but pay attention to e820 tables */ >+ seed_boot_allocator(1 << 20, 16 << 20); > #else >- init_boot_pages(xenheap_phys_end, 16<<20); /* Initial seed: 4MB */ >+ seed_boot_allocator(xenheap_phys_end, 16<<20); /* Initial seed: 4MB */ > #endif > > if ( kexec_crash_area.size != 0 )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 410811
: 277241