From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lakshitha Harshan Subject: Memory Sharing Date: Tue, 24 May 2011 12:47:39 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0488740293==" 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 --===============0488740293== Content-Type: multipart/alternative; boundary=0015175cd26419774304a4006231 --0015175cd26419774304a4006231 Content-Type: text/plain; charset=ISO-8859-1 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 --0015175cd26419774304a4006231 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 c= all,

uint64_t shandle, chandle;=A0=A0 =A0 =A0= =A0 =A0 =A0
=A0xc_memshr_nominate_gfn(xc_handle,dom1,4200,&shandle); //dom1 &a= mp; dom2 are Debian Squeeze domUs
=A0xc_memshr_nominate_gfn(x= c_handle,dom2,4200,&shandle); // gfn 4200 is a memory page in kernel co= de 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 mf= n 42f01: c=3D8000000000000002 t=3D8400000000000001
(XEN) sh error: sh_remove_all_mappings(): can't find all mappings = of mfn 42f01: c=3D8000000000000002 t=3D8400000000000001
(XEN) sh = error: sh_remove_all_mappings(): can't find all mappings of mfn 9c502: = c=3D8000000000000002 t=3D8400000000000001
(XEN) sh error: sh_remove_all_mappings(): can't find all mappings = of mfn 42f02: c=3D8000000000000002 t=3D8400000000000001
(XEN) sh = error: sh_remove_all_mappings(): can't find all mappings of mfn 42f02: = c=3D8000000000000002 t=3D8400000000000001
(XEN) printk: 2695593 messages suppressed.
(XEN) mm.c:907:d1= Error getting mfn 9c625 (pfn fffffffffffffffe) from L1 entry 000000009c625= 021 for l1e_owner=3D1, pg_owner=3D1
(XEN) printk: 2768333 message= s 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


=


--0015175cd26419774304a4006231-- --===============0488740293== 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 --===============0488740293==--