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] How can Xen trigger a context switch in an HVM guest do

To: XiaYubin <xiayubin@xxxxxxxxx>
Subject: Re: [Xen-devel] How can Xen trigger a context switch in an HVM guest domain?
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=mZQPgBn/QZZaeQUlNRcMFH2tbedHDyZcxhUlTUO/STU=; b=L0SIrdQ4AkraX19O9NywwbZNuodGYYIc/z5XQhbCAj5vVPGW5AXSGbyScK1KLyiRvh oZ0NsEfLK+psRC9Gz93Sdk+2f8stbclVbxCNj51awaLg+9+nh8kufuZsIuZZPme4mHo+ GR8PBgcCjXvAvczeoCyTK+TPW1s/GpAYUxMQs=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <8ee64b0c0910310402x7e3aabbeh26d77455408a9d0f@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: <8ee64b0c0910310402x7e3aabbeh26d77455408a9d0f@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>