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 148554 Details for
Bug 220592
kernel boot panic with >=64GB memory
[?]
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]
Patch posted to upstream to let the hypervisor/dom0 kernel boot on large memory machines
xen-hugemem-3.patch (text/plain), 2.88 KB, created by
Chris Lalancette
on 2007-02-22 00:41:47 UTC
(
hide
)
Description:
Patch posted to upstream to let the hypervisor/dom0 kernel boot on large memory machines
Filename:
MIME Type:
Creator:
Chris Lalancette
Created:
2007-02-22 00:41:47 UTC
Size:
2.88 KB
patch
obsolete
>diff -urp xen.orig/arch/x86/mm.c xen/arch/x86/mm.c >--- xen.orig/arch/x86/mm.c 2007-02-21 14:45:38.000000000 -0500 >+++ xen/arch/x86/mm.c 2007-02-21 16:11:34.000000000 -0500 >@@ -179,7 +179,15 @@ void __init init_frametable(void) > > for ( i = 0; i < nr_pages; i += page_step ) > { >+#ifdef __x86_64__ >+ /* for x86_64 we want to allocate the frame table from the top >+ * of memory rather than the bottom; otherwise, on large memory >+ * machines (> 64G), we exhaust DMA memory, and dom0 cannot boot >+ */ >+ mfn = alloc_boot_pages_reverse(min(nr_pages - i, page_step), page_step); >+#else > mfn = alloc_boot_pages(min(nr_pages - i, page_step), page_step); >+#endif > if ( mfn == 0 ) > panic("Not enough memory for frame table\n"); > map_pages_to_xen( >diff -urp xen.orig/common/page_alloc.c xen/common/page_alloc.c >--- xen.orig/common/page_alloc.c 2006-10-16 16:07:17.000000000 -0400 >+++ xen/common/page_alloc.c 2007-02-21 16:09:38.000000000 -0500 >@@ -213,26 +213,44 @@ void init_boot_pages(paddr_t ps, paddr_t > } > } > >-unsigned long alloc_boot_pages(unsigned long nr_pfns, unsigned long pfn_align) >+static unsigned long check_and_map_page(unsigned long pg, unsigned long nr_pfns) > { >- unsigned long pg, i; >+ unsigned long i; > >- for ( pg = 0; (pg + nr_pfns) < max_page; pg += pfn_align ) >+ for ( i = 0; i < nr_pfns; i++ ) >+ if ( allocated_in_map(pg + i) ) >+ break; >+ >+ if ( i == nr_pfns ) > { >- for ( i = 0; i < nr_pfns; i++ ) >- if ( allocated_in_map(pg + i) ) >- break; >+ map_alloc(pg, nr_pfns); >+ return pg; >+ } > >- if ( i == nr_pfns ) >- { >- map_alloc(pg, nr_pfns); >+ return 0; >+} >+ >+unsigned long alloc_boot_pages(unsigned long nr_pfns, unsigned long pfn_align) >+{ >+ unsigned long pg; >+ >+ for ( pg = 0; (pg + nr_pfns) < max_page; pg += pfn_align ) >+ if (check_and_map_page(pg, nr_pfns)) > return pg; >- } >- } > > return 0; > } > >+unsigned long alloc_boot_pages_reverse(unsigned long nr_pfns, unsigned long pfn_align) >+{ >+ unsigned long pg; >+ >+ for ( pg = (max_page - nr_pfns); pg > 0; pg -= pfn_align ) >+ if (check_and_map_page(pg, nr_pfns)) >+ return pg; >+ >+ return 0; >+} > > > /************************* >diff -urp xen.orig/include/xen/mm.h xen/include/xen/mm.h >--- xen.orig/include/xen/mm.h 2006-10-16 16:07:18.000000000 -0400 >+++ xen/include/xen/mm.h 2007-02-21 15:57:46.000000000 -0500 >@@ -39,6 +39,7 @@ struct page_info; > /* Boot-time allocator. Turns into generic allocator after bootstrap. */ > paddr_t init_boot_allocator(paddr_t bitmap_start); > void init_boot_pages(paddr_t ps, paddr_t pe); >+unsigned long alloc_boot_pages_reverse(unsigned long nr_pfns, unsigned long pfn_align); > unsigned long alloc_boot_pages(unsigned long nr_pfns, unsigned long pfn_align); > void end_boot_allocator(void); >
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 220592
:
144270
|
144362
|
144363
|
144364
|
144387
|
145875
|
145914
|
145966
|
145968
| 148554 |
148800
|
148801