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

[Xen-devel] Memory Sharing

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Memory Sharing
From: Lakshitha Harshan <harshan.dll@xxxxxxxxx>
Date: Tue, 26 Apr 2011 15:22:14 +0530
Delivery-date: Tue, 26 Apr 2011 02:52:59 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=XlqfdMpTbqiuX3eOvk1cmZpPscKLee0vgDYWgEfOiw4=; b=i+ceUrOQtMgPrIHcdKabkA8Wo6UXOWpWwU0d6cp7nzE61CVIWtu8za1K5+kjv5WmFz kt1MgT9xX8PP7t2gKW0meyQvs7hYjubiHL3P25dQnjHhhkzMkRFq+qVEKWLeiCKzOxCK w9s7mTrl1V5DH2vHUtqlZx5Y1ST4UzmkbU6uk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=RWWdrEKqs2JBHMCT3ilAthlykMNB1m7pOWNfzItvgymV1ncbV4IBVDxq8Ks9riW3mO FOBr9ParbsRfBix79lLFV3hm8/lxncIw154dF9gV2XimOw7GVbedNAgUNuehu+Zgd92A yc/8dYZuhdimdKAkMn2ZwmMcYbIlByj1uC9Fk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I'm trying to create a code which invokes xc_memshr_nominate_gfn() and xc_memshr_share().

In my testing code I use,

uint64_t handle; int y;                    
y = xc_memshr_nominate_gfn(xc_handle,dom,1500,&handle);  

It returns -1 even if I use another gfn number instead of 1500. So my question is why does i returns -1 every time. My guest VMs are HVM (64-bit), PAE & HAP enabled. I'm using Xen-4.0.2-rc3.

Is it  possible to use these memory sharing functions in this manner  without any support from blktap2?

If someone could provide me some sample code on how to invoke this functions it would be a great help to me.

Thanks,
Harshan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>