From: Stephan Creutz Subject: the cause of invalid entries in physical-to-machine table Date: Thu, 25 Jan 2007 18:53:10 +0100 Message-ID: <20070125185310.47757560.stephan.creutz@inf.tu-dresden.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Hi, I am currently trying to understand the details of live-migration by looking at the code xc_linux_save.c in libxc and writing a simple program to make things more clear. The program memory maps all mfns which are used for the pfn to mfn list, goes through all pfns, resolves each pfn to a mfn and tries to memory map each of them to read its content. One thing I noticed are invalid physical-to-machine list entries (list entries where the resulting mfn equals INVALID_P2M_ENTRY and xc_map_foreign_range failes). I wonder what are the possible causes for invalid entries in the pfn to mfn list. One cause I can think of are pfns that are reserved for Xen itself, but what are the other ones? BTW: as far as I understand, xc_map_foreign_range should use the size 1 instead of PAGE_SIZE to get the shared info page and live_p2m_frame_list_list because this function expects the size in multiples of the page size not in bytes. Stephan