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

Re: [Xen-devel] How can Xen trigger a context switch in an HVM guest domain?


  • To: XiaYubin <xiayubin@xxxxxxxxx>
  • From: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
  • Date: Sat, 31 Oct 2009 15:20:03 +0000
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Sat, 31 Oct 2009 08:20:36 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=RGTbqcMrzwd5tDXQlnGsP/J6PkKeBcfAEWzyWYABElEjNo3SfrRYPkmflA2ClldWZt +ZibSqATf7QZxbXpuFfGHcaPIQjRvdlv1LrkbLjNtgDvCNO6VApjRCT7YRN2Ozec8Uih pg3tZeEwCjBkUemuFIu72BKog5j1kQFk1VYJQ=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Context switching is a choice the guest OS has to make, and how that's
done will differ based on the operating system.  I think if you're
thinking about modifying the guest scheduler, you're probably better
off starting with Linux.  Even if there's a way to convince Windows to
call schedule() to pick a new process, I'm not sure you'll be able to
tell it *which* process to choose.

As far as mechanism on Xen's side, it would be easy enough to allocate
a "reschedule" event channel for the guest, such that whenever you
want to trigger a guest reschedule, just raise the event channel.

 -George

On Sat, Oct 31, 2009 at 11:02 AM, XiaYubin <xiayubin@xxxxxxxxx> wrote:
> Hi, all,
>
> As I'm doing some research in cooperative scheduling between Xen and
> guest domain, I want to know how many ways can Xen trigger a context
> switch inside an HVM guest domain (which runs Windows in my case). Do
> I have to write a driver (like balloon-driver)? Or a user process is
> enough? Or there is an even simpler way?
>
> All your suggestions are appreciated. Thanks! :)
>
> --
> Yubin
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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