From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lakshitha Harshan Subject: Memory Sharing Date: Tue, 26 Apr 2011 15:22:14 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0267784838==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0267784838== Content-Type: multipart/alternative; boundary=0016e6da934b593a2404a1cf47e0 --0016e6da934b593a2404a1cf47e0 Content-Type: text/plain; charset=ISO-8859-1 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 --0016e6da934b593a2404a1cf47e0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,

I'm trying to create a code which invokes xc_mem= shr_nominate_gfn() and xc_memshr_share().

In my te= sting code I use,

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

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

Is it =A0possible to use these memory sharing functions= in this manner =A0without any support from blktap2?

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

Thanks,
Harshan

--0016e6da934b593a2404a1cf47e0-- --===============0267784838== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0267784838==--