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, 24 May 2011 12:47:39 +0530
Delivery-date: Tue, 24 May 2011 00:18:58 -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=MmRF/aTKVGoBtt5zp1SnLHjXXhU3bilTox5gy8xOTeY=; b=Vj+n9gFCCjgrv8KzRKMwLKvoqAb3ElAgvyIz2j2dI0FFbO00e6kNa8ySu0nvGTn63L izQzJUuSl5FWjrxZhIEyN3ICsKT5mqM1xj+EleBoHGDWyivZNmRj0vfAl8DLcmVHG7kw q2GNQloVr2FtWEQuguoff6pLlZI0TGFY44qTg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=jR9waE0snpFpCleQfm7tykXeDEoxVVgkk2ViG6Za3DsC/DxOVNa1a+DLMN7u3BLG2n nJMuXhramth0lVMh8soO6VowO10GlIEg3l9dR1cACCLObklzlUuKDIMpmoCCxI/3Twgo VIxsML0RexGwVaKyK3tmaW0Jw0bOtCXEO5jrY=
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 using Xen 4.1.1-rc1-pre on linux-xen-2.6.32.39-g057b171. I'm trying to use memory sharing functions. In my code i call,

uint64_t shandle, chandle;�� � � � � �
�xc_memshr_nominate_gfn(xc_handle,dom1,4200,&shandle); //dom1 & dom2 are Debian Squeeze domUs
�xc_memshr_nominate_gfn(xc_handle,dom2,4200,&shandle); // gfn 4200 is a memory page in kernel code segment
xc_memshr_share(xc_handle, shandle, chandle);

I use xl dmesg and following is the output.

(XEN) sh error: sh_remove_all_mappings(): can't find all mappings of mfn 42f01: c=8000000000000002 t=8400000000000001
(XEN) sh error: sh_remove_all_mappings(): can't find all mappings of mfn 42f01: c=8000000000000002 t=8400000000000001
(XEN) sh error: sh_remove_all_mappings(): can't find all mappings of mfn 9c502: c=8000000000000002 t=8400000000000001
(XEN) sh error: sh_remove_all_mappings(): can't find all mappings of mfn 42f02: c=8000000000000002 t=8400000000000001
(XEN) sh error: sh_remove_all_mappings(): can't find all mappings of mfn 42f02: c=8000000000000002 t=8400000000000001
(XEN) printk: 2695593 messages suppressed.
(XEN) mm.c:907:d1 Error getting mfn 9c625 (pfn fffffffffffffffe) from L1 entry 000000009c625021 for l1e_owner=1, pg_owner=1
(XEN) printk: 2768333 messages suppressed.

After this operations the cpu usage of domUs goes to 97-100% and I can't shutdown them. So when i issue "xl destroy""the system reboots.

What could be the reason? Any help greatly appreciated.

Thanks,
Harshan




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