Mailing List Archive

Memory Sharing
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
Memory Sharing [ In reply to ]
Hi all,

I'm doing some tests on memory sharing feature. Current version i'm having
is not working (Xen -4.0.2-rc3 on Debian Dom0 (linux 2.6.32.27)).

So can anybody please send me the details of working configuration?

Thanks,
Harshan
Re: Memory Sharing [ In reply to ]
Hi,

At 05:49 +0100 on 03 May (1304401799), Lakshitha Harshan wrote:
> I'm doing some tests on memory sharing feature. Current version i'm
> having is not working (Xen -4.0.2-rc3 on Debian Dom0 (linux
> 2.6.32.27)).

That's a very old version of Xen. I don't use memory sharing, and maybe
someone who does can suggest a better starting point, but I would
suggest using at least the tip of 4.1-testing, and the Debian packaged
dom0 kernel.

Tim.

--
Tim Deegan <Tim.Deegan@citrix.com>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel