ia64/xen-unstable

changeset 18071:0796aa57d297

x86 shadow: Re-init per-page spinlock before freeing p2m pages.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jul 16 11:25:06 2008 +0100 (2008-07-16)
parents 3fe6df9afd5d
children 9361e140fee3
files xen/arch/x86/mm/shadow/common.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/common.c	Wed Jul 16 11:16:48 2008 +0100
     1.2 +++ b/xen/arch/x86/mm/shadow/common.c	Wed Jul 16 11:25:06 2008 +0100
     1.3 @@ -1676,6 +1676,9 @@ shadow_free_p2m_page(struct domain *d, s
     1.4      /* Free should not decrement domain's total allocation, since 
     1.5       * these pages were allocated without an owner. */
     1.6      page_set_owner(pg, NULL); 
     1.7 +#if defined(__x86_64__)
     1.8 +    spin_lock_init(&pg->lock);
     1.9 +#endif
    1.10      free_domheap_pages(pg, 0);
    1.11      d->arch.paging.shadow.p2m_pages--;
    1.12      perfc_decr(shadow_alloc_count);