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/
Home Products Support Community News


Re: [Xen-devel] Memory Page Sharing on Xen 4.0.1

To: Sebastian Biedermann <biedermann@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Memory Page Sharing on Xen 4.0.1
From: veerasena reddy <veeruyours@xxxxxxxxx>
Date: Tue, 28 Jun 2011 18:54:20 +0530
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 28 Jun 2011 06:25:25 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RHQT9fFMLctpw0aa/16YO0KYVmf5IrztqN+X4DiWmYA=; b=PxTKN1LHna74YYWfxq8BfdFDy/g2zzVVJm6RKaay4iRn05RWqgqYqkQXQYdWcdtR88 yX3fmPjWA4nhMLdcdTzltcBF9mK9HA3WbQCwmQunicPD+h/v0M8MOGBvzAWq329ZPuXi BWRy4quvtSOziYRLJhz08xcxhonnjirEawESI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E09C708.1010804@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <4E09C708.1010804@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

I tried the same links but had to make some changes to get it working.
Please find attached the sample working files for sharing a domU HVM page to dom0.
It has been tested xen-4.0.1 and HVM guest running ubuntu 10.10 with kernel version (from kernel.org) compiled with CONFIG_XEN disabled and PVHVM drivers compiled in as modules.

1. Set LINUX_ROOT appropriately in Makefiles of dom0 and domU.
2. Set remote domain in dom0 appropriately "info.remoteDomain = <domU_domain_id>"
3. Compile modules dom0 and domU respectively on dom0 and domU guest.
4. Load module on domU first.
    # insmod ./domu_share.ko
5. do "dmesg" on domU and note down the grant reference number
    [ 1293.316240]  gref = 770   <<<--- this is the grant reference number
6. now load the module on dom0 by passing grant reference number as module param
    # insmod ./dom0_share.ko gref=770
7. do dmesg on dom0
======== dmesg on dom0 =====
    xen: dom0: init_module with gref = 770
xen: dom0: shared_page = 269f4000, handle = 9, status = 0
Bytes in page aseem sethi
XEN: dom: end init_module

Thanks & Regards,

On Tue, Jun 28, 2011 at 5:50 PM, Sebastian Biedermann <biedermann@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Dear List,

I´m trying to figure out memory page sharing using HVM on Xen 4.0.1,
but I´m not really able to find some useful information or sources about this issue.

I just found two links porviding these sources:


Both are not working.. I think they are made for an older version of xen.

Additionally I thought about checking the code of:


..which is located in the Xen source, but that´s very complicated and I dont know what I need
for a simple page exchange using own programmed standalone tools between two running domains.

Can anyone help me by sending some useful links or can anyone give me a hint where to start?

Thank you a lot!

Xen-devel mailing list

Attachment: dom0_working.tar
Description: Unix tar archive

Attachment: domU_working.tar
Description: Unix tar archive

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>