ia64/xen-unstable

changeset 4701:5ca208755ef2

bitkeeper revision 1.1159.258.109 (4271591efy8CDaEUexiC4RrOlWxDNg)

Backport of bugfix to ensure that p2m entries are invalidated
before returning memory back to Xen allocation pool.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Apr 28 21:43:58 2005 +0000 (2005-04-28)
parents 0f620bc56828
children 75a775c40caf 43161b1d961e
files linux-2.6.11-xen-sparse/arch/xen/i386/mm/hypervisor.c
line diff
     1.1 --- a/linux-2.6.11-xen-sparse/arch/xen/i386/mm/hypervisor.c	Thu Apr 28 15:23:35 2005 +0000
     1.2 +++ b/linux-2.6.11-xen-sparse/arch/xen/i386/mm/hypervisor.c	Thu Apr 28 21:43:58 2005 +0000
     1.3 @@ -378,7 +378,8 @@ unsigned long allocate_empty_lowmem_regi
     1.4          pte = pte_offset_kernel(pmd, (vstart + (i*PAGE_SIZE))); 
     1.5          pfn_array[i] = pte->pte_low >> PAGE_SHIFT;
     1.6          queue_l1_entry_update(pte, 0);
     1.7 -        phys_to_machine_mapping[__pa(vstart)>>PAGE_SHIFT] = INVALID_P2M_ENTRY;
     1.8 +        phys_to_machine_mapping[(__pa(vstart)>>PAGE_SHIFT)+i] =
     1.9 +            INVALID_P2M_ENTRY;
    1.10      }
    1.11  
    1.12      /* Flush updates through and flush the TLB. */