WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] scheduling VMX partitions broken
From: Leendert van Doorn <leendert@xxxxxxxxxxxxxx>
Date: Fri, 11 Mar 2005 23:28:12 -0500
Cc: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>, Keir.Fraser@xxxxxxxxxxxx
Delivery-date: Sat, 12 Mar 2005 04:36:20 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Organization: IBM T.J. Watson Research Center
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] scheduling VMX partitions broken, Leendert van Doorn <=