[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] scheduling VMX partitions broken



With the following restructuring of the scheduling code in xeno-unstable.bk:

ChangeSet@xxxxxxxxxxx, 2005-03-09 09:01:46+00:00, kaf24@xxxxxxxxxxxxxxxxxxxx
  New arch-specific function context_switch() subsumes switch_to() and
  schedule_tail() which are now not at all visible to common code.
  Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxxxx>

a VMX partition was all setup to run, but never actually got scheduled. The
following patch fixes this.

        Leendert


Signed-Off-By: Leendert van Doorn <leendert@xxxxxxxxxxxxxx>

--- domain.c.orig       2005-03-11 22:53:21.824332000 -0500
+++ domain.c    2005-03-11 22:55:24.344332000 -0500
@@ -765,7 +765,7 @@
             __asm__ __volatile__ ("lgdt %0" : "=m" (*next_p->arch.gdt));
 
             __sti();
-            return;
+           goto schedule_next;
         }
 #endif
  
@@ -810,6 +810,7 @@
 
     switch_segments(stack_ec, prev_p, next_p);
 
+schedule_next:
     /*
      * We do this late on because it doesn't need to be protected by the
      * schedule_lock, and because we want this to be the very last use of



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.