From: Marco Tizzoni Subject: Re: Explore the source code Date: Wed, 1 Apr 2009 09:28:13 +0200 Message-ID: References: <200903021135.56688.marco.tizzoni@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1342899316==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1342899316== Content-Type: multipart/alternative; boundary=001636c5a45f1375fe0466794394 --001636c5a45f1375fe0466794394 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Tue, Mar 31, 2009 at 12:40 PM, George Dunlap 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 --001636c5a45f1375fe0466794394 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

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

Sorry for not following up. =A0I 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. =A0For 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 h= elp and David's book how to implement a new scheduler it's pretty c= lear now.
Also I'd have a look to device scheduling in order change = its behaviour according to my new scheduler policies. Any suggestion on whe= re to start?

Marco

--001636c5a45f1375fe0466794394-- --===============1342899316== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1342899316==--