* [patch] pae >4gb fix #1
@ 2005-08-05 14:13 Gerd Knorr
0 siblings, 0 replies; only message in thread
From: Gerd Knorr @ 2005-08-05 14:13 UTC (permalink / raw)
To: xen-devel
Hi,
mpt size calculation is wrong, we don't allocate enougth 2MB
pages and pagefault in the memset which clears the mpt.
Gerd
--- xen/arch/x86/x86_32/mm.c.pae 2005-08-05 15:39:23.000000000 +0200
+++ xen/arch/x86/x86_32/mm.c 2005-08-05 16:05:39.115794436 +0200
@@ -98,7 +98,9 @@
* installed, but at least 4MB to cover 4GB address space. This is needed
* to make PCI I/O memory address lookups work in guests.
*/
- if ( (mpt_size = max_page * 4) < (4*1024*1024) )
+#define L2_MASK ((1<<L2_PAGETABLE_SHIFT)-1)
+ mpt_size = (max_page * 4 + L2_MASK) & ~L2_MASK;
+ if (mpt_size < 4*1024*1024)
mpt_size = 4*1024*1024;
for ( i = 0; i < (mpt_size >> L2_PAGETABLE_SHIFT); i++ )
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-08-05 14:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-05 14:13 [patch] pae >4gb fix #1 Gerd Knorr
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.