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] synchronization in hypervisor

To: 胡少龙 <sunofblack@xxxxxxxx>
Subject: Re: [Xen-devel] synchronization in hypervisor
From: George Dunlap <dunlapg@xxxxxxxxx>
Date: Mon, 2 Aug 2010 10:44:13 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 02 Aug 2010 02:45:09 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=AZIpj2uNw7gO4ix06fW6KTEohy83sBZhKQ6J/Gpj4xA=; b=Y7nPvtpEn7ZWVaekEsurNIfvWQDoAJPKeZaaN6fNofOe7g9xOylS0H+CfFLhcX6jnM Uury8J4UP8b8ii7GajCcHAKuuZpaT8eEbfUoPD9TekkGYGgC+79Xv60UqlrkgTf7leDo VJAv4XW9pggoPWplcYdF3AIHbVPbJI39xwlY4=
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=SBEFIqjVdeH7pkBwoIP2bsoc6wDRUC+3p74RjvZnMc2hYHkHdODk5vyvkQWnMuS4ae ht0otcn10rxSwdWDUJF2ZVASC/wt/3dGiFXF2X0O0qJXbAjvQl+te9mJQ/Z9Ua2xE7W0 ukDfkO1mdF52D9qxXwyLwX13EU9gepJ9sODps=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <258448.46604.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: <258448.46604.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
What's the problem you're trying to solve? 

If you just want to synchronize between VMs, there are a number of ways to solve it without adding hypercalls:
* Share a memory page, and let the two VMs syncronize directly, without needing to use the hypervisor
* Calling SCHEDOP_block on one VM, and then sending an event channel from another VM
* Have a VM pause itself, and have another VM un-pause it

 -George

On Sun, Aug 1, 2010 at 2:28 AM, 胡少龙 <sunofblack@xxxxxxxx> wrote:
Hi,
    I want to add two hypercalls, and to synchronize between them, which is, first wait in one hypercall, and up it in another, is there a synchronization mechanism i can use in xen hypervisor?which part of code can i reference?Thanks.
                                                                                                                  Shawn Hu

 
_______________________________________________
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>
  • Re: [Xen-devel] synchronization in hypervisor, George Dunlap <=