ia64/xen-unstable

changeset 17457:5338c4f424ed

x86: per-domain p2m structure must be initialised to all-zeroes when
it is allocated.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Apr 15 15:44:40 2008 +0100 (2008-04-15)
parents 3094ad1d73e6
children 6691ae150d10
files xen/arch/x86/mm/p2m.c
line diff
     1.1 --- a/xen/arch/x86/mm/p2m.c	Tue Apr 15 15:03:40 2008 +0100
     1.2 +++ b/xen/arch/x86/mm/p2m.c	Tue Apr 15 15:44:40 2008 +0100
     1.3 @@ -414,6 +414,7 @@ int p2m_init(struct domain *d)
     1.4  
     1.5      d->arch.p2m = p2m;
     1.6  
     1.7 +    memset(p2m, 0, sizeof(*p2m));
     1.8      p2m_lock_init(p2m);
     1.9      INIT_LIST_HEAD(&p2m->pages);
    1.10