# HG changeset patch # User iap10@labyrinth.cl.cam.ac.uk # Date 1084443456 0 # Node ID a3dd7bf2fcd69e19f5f59021235e5ab1cabdfcca # Parent 6cf25fb7eebd4b74093fdd7c8d9b48f8ecc35489 bitkeeper revision 1.902 (40a34b40gzZ-ypwQ3HUMqdzjtQqqfQ) domain.c: init shadow page table spin lock earlier diff -r 6cf25fb7eebd -r a3dd7bf2fcd6 xen/common/domain.c --- a/xen/common/domain.c Wed May 12 14:41:15 2004 +0000 +++ b/xen/common/domain.c Thu May 13 10:17:36 2004 +0000 @@ -58,6 +58,8 @@ struct task_struct *do_createdomain(domi atomic_set(&p->refcnt, 1); + spin_lock_init(&p->mm.shadow_lock); + p->domain = dom_id; p->processor = cpu; p->create_time = NOW();