Leendert van Doorn
2005-Mar-12 04:28 UTC
[Xen-devel] [PATCH] scheduling VMX partitions broken
With the following restructuring of the scheduling code in xeno-unstable.bk: ChangeSet@1.1301.1.16, 2005-03-09 09:01:46+00:00, kaf24@firebug.cl.cam.ac.uk 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@cl.cam.ac.uk> 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@watson.ibm.com> --- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel