ia64/xen-unstable

changeset 17289:6bdb34397701

[IA64] Increase hypervisor memory reservation

Recent additions to the xen codebase have inflated the memory requirements
of the hypervisor a bit. To compensate, we need to increase the amount of
memory we try to reserve for the hypervisor when allocating "all" system
memory to dom0.

Fixes kernel panics on a 2GB rx2600 in our lab, as well as on misc. test
systems with between 16 and 128GB when they're configured to allocate "all"
memory to dom0.

Signed-off-by: Jarod Wilson <jwilson@redhat.com>
author Alex Williamson <alex.williamson@hp.com>
date Thu Mar 20 14:12:07 2008 -0600 (2008-03-20)
parents c7a58a81c4b8
children e768be7bf561
files xen/arch/ia64/xen/domain.c
line diff
     1.1 --- a/xen/arch/ia64/xen/domain.c	Thu Mar 20 14:06:46 2008 -0600
     1.2 +++ b/xen/arch/ia64/xen/domain.c	Thu Mar 20 14:12:07 2008 -0600
     1.3 @@ -1943,10 +1943,10 @@ static void __init calc_dom0_size(void)
     1.4  	 * for DMA and PCI mapping from the available domheap pages. The
     1.5  	 * chunk for DMA, PCI, etc., is a guestimate, as xen doesn't seem
     1.6  	 * to have a good idea of what those requirements might be ahead
     1.7 -	 * of time, calculated at 1MB per 4GB of system memory */
     1.8 +	 * of time, calculated at 128MB + 1MB per 4GB of system memory */
     1.9  	domheap_pages = avail_domheap_pages();
    1.10  	p2m_pages = domheap_pages / PTRS_PER_PTE;
    1.11 -	spare_hv_pages = domheap_pages / 4096;
    1.12 +	spare_hv_pages = 8192 + (domheap_pages / 4096);
    1.13  	max_dom0_size = (domheap_pages - (p2m_pages + spare_hv_pages))
    1.14  			 * PAGE_SIZE;
    1.15  	printk("Maximum permitted dom0 size: %luMB\n",