diff options
Diffstat (limited to 'arch/x86/xen/p2m.c')
-rw-r--r-- | arch/x86/xen/p2m.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c index 64effdc6da94..b2e91d40a4cb 100644 --- a/arch/x86/xen/p2m.c +++ b/arch/x86/xen/p2m.c | |||
@@ -194,6 +194,11 @@ RESERVE_BRK(p2m_mid_mfn, PAGE_SIZE * (MAX_DOMAIN_PAGES / (P2M_PER_PAGE * P2M_MID | |||
194 | * boundary violation will require three middle nodes. */ | 194 | * boundary violation will require three middle nodes. */ |
195 | RESERVE_BRK(p2m_mid_identity, PAGE_SIZE * 2 * 3); | 195 | RESERVE_BRK(p2m_mid_identity, PAGE_SIZE * 2 * 3); |
196 | 196 | ||
197 | /* When we populate back during bootup, the amount of pages can vary. The | ||
198 | * max we have is seen is 395979, but that does not mean it can't be more. | ||
199 | * But some machines can have 3GB I/O holes even. So lets reserve enough | ||
200 | * for 4GB of I/O and E820 holes. */ | ||
201 | RESERVE_BRK(p2m_populated, PMD_SIZE * 4); | ||
197 | static inline unsigned p2m_top_index(unsigned long pfn) | 202 | static inline unsigned p2m_top_index(unsigned long pfn) |
198 | { | 203 | { |
199 | BUG_ON(pfn >= MAX_P2M_PFN); | 204 | BUG_ON(pfn >= MAX_P2M_PFN); |