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] [PATCH 0 of 5] update xenctx to dump pagetables

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 0 of 5] update xenctx to dump pagetables
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Wed, 22 Jun 2011 15:50:34 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Tim Deegan <Tim.Deegan@xxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Delivery-date: Wed, 22 Jun 2011 06:51:32 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1308750641; l=4610; s=domk; d=aepfle.de; h=In-Reply-To:Content-Type:MIME-Version:References:Subject:Cc:To:From: Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=64oZtF+X7kElSyq1TlZVgWFeltI=; b=MAeMXmw7/P2fk/6nYqZxy8vbtqn9FCj6xGJ+s3Q+IM8i1LSWAZfsxMCidI6hcvG9RDe 9xivk58+UyhxsXaB9vy6pgS7+syScp4ur/9gMEY2JhoT1rZDTNVqUuvJnOhuCkJ4RTDmE /zXBl24xe3vLuhI4+f+ju1wAOQ4keD2osNw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E008F1D02000078000487E9@xxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1308583616@xxxxxxxxxxxx> <20110620173345.GO17634@xxxxxxxxxxxxxxxxxxxxxxx> <20110620175158.GA17413@xxxxxxxxx> <20110620215623.GA18508@xxxxxxxxxxxx> <20110621095911.GQ17634@xxxxxxxxxxxxxxxxxxxxxxx> <4E008F1D02000078000487E9@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-12-30)
On Tue, Jun 21, Jan Beulich wrote:

> >>> On 21.06.11 at 11:59, Tim Deegan <Tim.Deegan@xxxxxxxxxx> wrote:
> > Hi, 
> > 
> > At 17:56 -0400 on 20 Jun (1308592583), Konrad Rzeszutek Wilk wrote:
> >> > Any ideas why some mfns are not accessible?
> >> 
> >> They look to be the special I/O PFNs. The ones that cover ACPI, 
> >> framebuffer,
> >> PCI IO bars, MP tale.
> > 
> > I think they're too high for that, but if you can post the e820 map of
> > the system this happened on then we'll know. 
> > 
> >> > Are there any other paging states maintained outside of the guests
> >> > memory?
> >> 
> >> They look to be I/O pages.
> >> 
> >> But not sure why they are mapped to your guest?
> > 
> > But they're not mapped into the guest - from the look of them they're
> > not mapped anywhere.  You could add some extra printouts around that
> > warning in mm.c to show whether the MFNs are valid and if so which
> > domain owns them.
> > 
> > Also, interesting that it's the addresses just above 0xffff800000000000
> > that are different - what lives at that address in the PV kernel you're
> > running?
> 
> That's Xen's space, isn't it. Clearly any non-hypervisor based page
> table walking code has to ignore this range for PV guests' page
> tables.

Is there a way to detect that? I cant seem to match any of these ranges to
something in guests dmesg or /proc.

After adding some debug to my xenctx from sles11 4.0, I get this on vcpu 0:

xc_map_foreign_range: walk_l3: 0 virt 0000800000000000 mfn 13fff8: Invalid 
argument
xc_map_foreign_range: walk_l3: 0 virt 0000808000000000 mfn 13fff0: Invalid 
argument
xc_map_foreign_range: walk_l2: 0 virt 0000814000000000 mfn 13fff8: Invalid 
argument
xc_map_foreign_range: walk_l2: 0 virt 0000814040000000 mfn 13fff0: Invalid 
argument
xc_map_foreign_range: walk_l1: 0 virt 00008140a0000000 mfn 13fff8: Invalid 
argument
xc_map_foreign_range: walk_l1: 0 virt 00008140a0200000 mfn 13fff0: Invalid 
argument
xc_map_foreign_range: walk_l1: 0 virt 00008140a0800000 mfn 137ff8: Invalid 
argument
xc_map_foreign_range: walk_l1: 0 virt 00008140a0a00000 mfn bf49a: Invalid 
argument
xc_map_foreign_range: walk_l1: 0 virt 00008140a0c00000 mfn bf495: Invalid 
argument
xc_map_foreign_range: walk_l2: 0 virt 0000814100000000 mfn 137ff8: Invalid 
argument
xc_map_foreign_range: walk_l2: 0 virt 0000814140000000 mfn bf49a: Invalid 
argument
xc_map_foreign_range: walk_l2: 0 virt 0000814180000000 mfn bf495: Invalid 
argument
xc_map_foreign_range: walk_l3: 0 virt 0000820000000000 mfn 137ff8: Invalid 
argument
xc_map_foreign_range: walk_l3: 0 virt 0000828000000000 mfn bf49a: Invalid 
argument
xc_map_foreign_range: walk_l3: 0 virt 0000830000000000 mfn bf495: Invalid 
argument


And dmesg has:

(XEN) mm.c:880:d0 Error getting mfn 13fff8 (pfn 5555555555555555) from L1 entry 
800000013fff8625 for l1e_owner=0, pg_owner=1
(XEN) mm.c:880:d0 Error getting mfn 13fff0 (pfn 5555555555555555) from L1 entry 
800000013fff0625 for l1e_owner=0, pg_owner=1
(XEN) mm.c:880:d0 Error getting mfn 13fff8 (pfn 5555555555555555) from L1 entry 
800000013fff8625 for l1e_owner=0, pg_owner=1
(XEN) mm.c:880:d0 Error getting mfn 13fff0 (pfn 5555555555555555) from L1 entry 
800000013fff0625 for l1e_owner=0, pg_owner=1
(XEN) mm.c:880:d0 Error getting mfn 13fff8 (pfn 5555555555555555) from L1 entry 
800000013fff8625 for l1e_owner=0, pg_owner=1
(XEN) mm.c:880:d0 Error getting mfn 13fff0 (pfn 5555555555555555) from L1 entry 
800000013fff0625 for l1e_owner=0, pg_owner=1
(XEN) mm.c:880:d0 Error getting mfn 137ff8 (pfn f180d) from L1 entry 
8000000137ff8625 for l1e_owner=0, pg_owner=1
(XEN) mm.c:880:d0 Error getting mfn bf49a (pfn 5555555555555555) from L1 entry 
80000000bf49a625 for l1e_owner=0, pg_owner=1
(XEN) mm.c:880:d0 Error getting mfn bf495 (pfn 5555555555555555) from L1 entry 
80000000bf495625 for l1e_owner=0, pg_owner=1
(XEN) mm.c:880:d0 Error getting mfn 137ff8 (pfn f180d) from L1 entry 
8000000137ff8625 for l1e_owner=0, pg_owner=1
(XEN) mm.c:880:d0 Error getting mfn bf49a (pfn 5555555555555555) from L1 entry 
80000000bf49a625 for l1e_owner=0, pg_owner=1
(XEN) mm.c:880:d0 Error getting mfn bf495 (pfn 5555555555555555) from L1 entry 
80000000bf495625 for l1e_owner=0, pg_owner=1
(XEN) mm.c:880:d0 Error getting mfn 137ff8 (pfn f180d) from L1 entry 
8000000137ff8625 for l1e_owner=0, pg_owner=1
(XEN) mm.c:880:d0 Error getting mfn bf49a (pfn 5555555555555555) from L1 entry 
80000000bf49a625 for l1e_owner=0, pg_owner=1
(XEN) mm.c:880:d0 Error getting mfn bf495 (pfn 5555555555555555) from L1 entry 
80000000bf495625 for l1e_owner=0, pg_owner=1

Olaf

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