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

Re: [Xen-devel] Explore the source code

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Explore the source code
From: Marco Tizzoni <marco.tizzoni@xxxxxxxxx>
Date: Wed, 1 Apr 2009 09:28:13 +0200
Delivery-date: Wed, 01 Apr 2009 00:28:58 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :received:message-id:subject:from:to:content-type; bh=MQYSEeSvSZZqL+QRiJGFw952wafDqUn0Vmgpse+4+r0=; b=QH2kRicV6cimSsNGE6PTxG5KlI6E6sXvmbQ4eKWUOTqQjaKohgBzwmKdnzIuEJRnXP sJcnNOtWigOiQXw+ZPlfWwT97Ya0vEExlPI1/OP1YAOvJ/0RaP/zO0dwEYxpqQQBjUJv TiTE9FLKxGseu5ihPplm89gASJhM7WtvMAsfg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ro9MVPp458S4sys6fE/06ZlVPWO9xwDDDMK0EY0iRyWkh8vE117WwqeCiGqC6BwPOn bMkzcFYQAgABeRxGMwkmKLU5luXOi+VkR0Ynn7TMDbk0ImaZSuTDNk4M8AVOP4Gwk5oL A8O0FWD6MdTyUfYnaunl9hYlJAMd0hsDLT4p4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <de76405a0903310340s1dccad41wabff5122960814f0@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <COL103-W463EC1EEF9AB2CF49CAB04ABA80@xxxxxxx> <de76405a0903020231r24f3c85aj3a0f97c3902512df@xxxxxxxxxxxxxx> <200903021135.56688.marco.tizzoni@xxxxxxxxx> <de76405a0903310340s1dccad41wabff5122960814f0@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx


On Tue, Mar 31, 2009 at 12:40 PM, George Dunlap <dunlapg@xxxxxxxxx> wrote:
Hey Marco,

Sorry for not following up.  I think the scheduler is pretty well
contained in the following files:
xen/common/schedule.c
xen/common/sched_credit.c
xen/include/xen/sched.h

One thing to note about Xen that's different than Linux is that while
in Linux there's a per-process kernel stack, in Xen there's no per-VM
hypervisor stack. When schedule() is called, it completely throws away
all hypervisor stack and context, and returns directly to the target
VM.  For this reason, schedule() is never called directly, but a
schedule softirq is raised and called on the way back out of the
hypervisor anyway.

Thanks for your answer, with your help and David's book how to implement a new scheduler it's pretty clear now.
Also I'd have a look to device scheduling in order change its behaviour according to my new scheduler policies. Any suggestion on where to start?

Marco

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-devel] Explore the source code, Marco Tizzoni <=