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

Re: [Xen-devel] xc_get_pfn_list() creates broken core files

To: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>, Keir Fraser <keir@xxxxxxxxxxxxx>, John Levon <levon@xxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] xc_get_pfn_list() creates broken core files
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Thu, 23 Nov 2006 19:05:08 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 23 Nov 2006 11:05:19 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <8A87A9A84C201449A0C56B728ACF491E01F981@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AccPLqqx6QH0EHshEduSVgAX8io7RQAAWKnAAACPWfI=
Thread-topic: [Xen-devel] xc_get_pfn_list() creates broken core files
User-agent: Microsoft-Entourage/11.2.5.060620
On 23/11/06 6:53 pm, "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx> wrote:

>> Pagetables etc. are all in 'p' address space, so there should
>> be no need for p2m or m2p in that case I think
>> 
>> In fact pagetables could be canonicalised into 'p' space for
>> PV guests too (xc_linux_save has the code for this) then
>> there'd be no need to dump the p2m table in the core dump at
>> all. Save format and core dump format should probably be one
>> and the same!
> 
> Trouble is, the PV guest hasn't done an orderly suspend, and may be
> holding machine address references in registers/memory and in pagetables
> that haven't been pinned yet.
> 
> The guest's core dump will already contain the p2m table, and its root
> location has been registered with xen during boot, so this just needs to
> be saved too.

It's questionable how useful the ability to m2p-translate those marginally
possible bits of state is though. Currently the p2m table is used *only* to
construct an m2p table allowing pagetable walks in xc_ptrace_core().

 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel