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

Re: [Xen-devel] synchronization in hypervisor


  • To: 胡少龙 <sunofblack@xxxxxxxx>
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

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