bitkeeper revision 1.902 (40a34b40gzZ-ypwQ3HUMqdzjtQqqfQ)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Thu, 13 May 2004 10:17:36 +0000 (10:17 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Thu, 13 May 2004 10:17:36 +0000 (10:17 +0000)
domain.c:
  init shadow page table spin lock earlier

xen/common/domain.c

index 90f28cda92a0760aa46abedfbb8bfc7dd3525ae9..b3a2e0ffa842b36f418b7900abe87eabd7b83466 100644 (file)
@@ -58,6 +58,8 @@ struct task_struct *do_createdomain(domid_t dom_id, unsigned int cpu)
 
     atomic_set(&p->refcnt, 1);
 
+    spin_lock_init(&p->mm.shadow_lock);
+
     p->domain    = dom_id;
     p->processor = cpu;
     p->create_time = NOW();