From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kai Luo Subject: Re: =?utf-8?q?Question_about_mapping_hvm=C5=92s_memory_to?= =?utf-8?q?_dom0?= Date: Sun, 30 Jun 2013 22:58:17 -0700 (PDT) Message-ID: <107213849.13945290.1372658297029.JavaMail.root@vmware.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3062553104506393732==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com, keir.xen@gmail.com List-Id: xen-devel@lists.xenproject.org --===============3062553104506393732== Content-Type: multipart/alternative; boundary="----=_Part_13945289_814688103.1372658297028" ------=_Part_13945289_814688103.1372658297028 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thank you Keir,I added some printk code in do_domctl() of domctl.c to check= whether the xc_domain_destroy works,which gives the printk lines I added,s= o the domain_kill is also called after I map the hvm's memory.Do you mean a= fter the domain destroyed, the memory is still held by hvm instead of retur= ning to xen?=20 ----- Original Message ----- From: "Keir Fraser" =20 To: "Kai Luo" , xen-devel@lists.xensource.com=20 Sent: Monday, July 1, 2013 1:37:32 PM=20 Subject: Re: [Xen-devel] Question about mapping hvm=C5=92s memory to dom0= =20 Re: [Xen-devel] Question about mapping hvm=E2=80=98s memory to dom0 The HVM= domain is not destroyed while there are still external mappings of its mem= ory.=20 On 01/07/2013 03:32, "Kai Luo" < kluo@vmware.com > wrote:=20 Hi:=20 I am trying to make some source code modifications to map the hvm memory to= dom0,I use the xc_map_foreign_bulk to do this,It works and I export the hv= m's memory to a file. My question is,after mapping the memory I use xc_doma= in_destroy to shutdown the running hvm,theoretically the mapped memory will= be scrubbed because xen will scrubbed the hvm's memory before they are fre= ed to xen hyperviser,however I export the mapped memory after destroying hv= m,finding the content in mapped memory nearly same as formly exported,they = are not scrubbed at all.That confused me.Can you give me any suggestion?=20 Thank you=20 Jone=20 _______________________________________________=20 Xen-devel mailing list=20 Xen-devel@lists.xen.org=20 http://lists.xen.org/xen-devel=20 ------=_Part_13945289_814688103.1372658297028 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
    Thank yo= u Keir,I added some printk code in do_domctl() of domctl.c to che= ck whether the xc_domain_destroy works,= which gives the printk lines I added,so the domain_kill is also called afte= r I map the hvm's memory.Do you mean after the domain destroyed, the memory= is still held by hvm instead of returning to xen?


To: "Kai = Luo" <kluo@vmware.com>, xen-devel@lists.xensource.com
Sent: Monday, July 1, 2013 1:37:32 PM
Subject: Re: [Xen-devel] Questio= n about mapping hvm=C5=92s memory to dom0

Re: [Xen-devel] Question about mapping hvm=E2=80=98s memory to dom0<= /title> <span face=3D"Calibri, Verdana, Helvetica, Arial" data-mce-style=3D"font-fa= mily: Calibri, Verdana, Helvetica, Arial;" style=3D"font-family: Calibri, V= erdana, Helvetica, Arial;"><span style=3D"font-size:11pt">The HVM domain is= not destroyed while there are still external mappings of its memory. <br> <br> <br> On 01/07/2013 03:32, "Kai Luo" <<a href=3D"kluo@vmware.com" target=3D"_b= lank">kluo@vmware.com</a>> wrote:<br> <br> </span></span><blockquote><span face=3D"Times New Roman" data-mce-style=3D"= font-family: 'Times New Roman';" style=3D"font-family: 'Times New Roman';">= <span style=3D"font-size:12pt">Hi:<br>          I am trying to make s= ome source code modifications to map the hvm memory to dom0,I use the xc_ma= p_foreign_bulk to do this,It works and I export the hvm's memory to a file.= My question is,after mapping the memory I use xc_domain_destroy to shutdow= n the running hvm,theoretically the mapped memory will be scrubbed because = xen will scrubbed the hvm's memory before they are freed to xen hyperviser,= however I export the mapped memory after destroying hvm,finding the content= in mapped memory nearly same as formly exported,they are not scrubbed at a= ll.That confused me.Can you give me any suggestion?<br> <br> Thank you<br> Jone<br> <br> <br> </span></span><span face=3D"Calibri, Verdana, Helvetica, Arial" data-mce-st= yle=3D"font-family: Calibri, Verdana, Helvetica, Arial;" style=3D"font-fami= ly: Calibri, Verdana, Helvetica, Arial;"><span style=3D"font-size:11pt"><br= > <hr align=3D"CENTER" size=3D"3" width=3D"95%"></span></span><span size=3D"2= " data-mce-style=3D"font-size: small;" style=3D"font-size: small;"><span fa= ce=3D"Consolas, Courier New, Courier" data-mce-style=3D"font-family: Consol= as, 'Courier New', Courier;" style=3D"font-family: Consolas, 'Courier New',= Courier;"><span style=3D"font-size:10pt">_________________________________= ______________<br> Xen-devel mailing list<br> <a href=3D"Xen-devel@lists.xen.org" target=3D"_blank">Xen-devel@lists.xen.o= rg</a><br> <a href=3D"http://lists.xen.org/xen-devel" target=3D"_blank">http://lists.x= en.org/xen-devel</a><br> </span></span></span></blockquote> </div><div><br></div></div></body></html> ------=_Part_13945289_814688103.1372658297028-- --===============3062553104506393732== 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.xen.org http://lists.xen.org/xen-devel --===============3062553104506393732==--