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

[Xen-devel] Memory Sharing


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

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

 


Rackspace

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