From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrii Anisov Subject: Re: Restart domU failure (memory allocation issue) Date: Fri, 14 Mar 2014 14:45:14 +0200 Message-ID: References: <53220B9A.50508@linaro.org> <5322F2D5.9020906@linaro.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3970015549888102755==" Return-path: In-Reply-To: <5322F2D5.9020906@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Oleksandr Tyshchenko , Stefano Stabellini , Tim Deegan , Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============3970015549888102755== Content-Type: multipart/alternative; boundary=089e01176955f9732c04f49070a6 --089e01176955f9732c04f49070a6 Content-Type: text/plain; charset=ISO-8859-1 > > It seems that unmap will be done at the end of xc_dom_boot_image (see > xc_dom_unmap_all). > The latter function will go through the list of all mappings and close > it one by one. > You can add a print in xc_dom_unmap_one (tools/libxc/xc_dom_core.c) and > check if you have the same number of print with xc_dom_pfn_to_ptr_retcount. As I see xc_dom_unmap_all ends with munmap(), what actually unmaps pages from process virtual memory space. But I have doubts if it is aware about cross domain mapping and cares about it. Andrii Anisov | Software Engineer GlobalLogic Kyiv, 03038, Protasov Business Park, M.Grinchenka, 2/1 P +38.044.492.9695x3664 M +380505738852 S andriyanisov www.globallogic.com http://www.globallogic.com/email_disclaimer.txt --089e01176955f9732c04f49070a6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
It seems that unmap will be done at the e= nd of xc_dom_boot_image (see
xc_dom_unmap_all).
The latter function will go through the list of all m= appings and close
it one by one.
You can add a print in xc_dom_unmap_= one (tools/libxc/xc_dom_core.c) and
check if you have the same number of= print with xc_dom_pfn_to_ptr_retcount.

As I see xc= _dom_unmap_all ends with munmap(), what actually unmaps pages from process = virtual memory space. But I have doubts if it is aware about cross domain m= apping and cares about it.

Andrii Anisov | Software Engineer
GlobalLogic
Kyiv, 03038, Protasov Business Park,= M.Grinchenka, 2/1
P +38.044.492.9695x3664=A0 M +3= 80505738852 =A0S andriyanisov
www.global= logic.com

http://www.globallogic.com/email_disclaimer.txt

--089e01176955f9732c04f49070a6-- --===============3970015549888102755== 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 --===============3970015549888102755==--