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] 15142:78389dbb08bb and domain state

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] 15142:78389dbb08bb and domain state
From: John Levon <levon@xxxxxxxxxxxxxxxxx>
Date: Fri, 9 Nov 2007 16:06:31 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 09 Nov 2007 08:07:19 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C359BFE9.10262%Keir.Fraser@xxxxxxxxxxxx>
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>
References: <20071109044958.GA5680@xxxxxxxxxxxxxxxxxxxxxxx> <C359BFE9.10262%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Fri, Nov 09, 2007 at 07:42:33AM +0000, Keir Fraser wrote:

> > It's the below changeset - no code to reset the domid exists any more.
> > It seems suboptimal to me? Shouldn't refreshShutdown (or somewhere,
> > anyway) remove domid?
> 
> Does this only happen for your special screwed domains that don't actually
> die?

I remember it being both, but it might have been - unfortunately I can
only create screwed domains at the moment (!).

> You can use the 'q' debug key to Xen to get it to print out per-domain info,
> including a list of held pages (if there's only one or two pages held) and
> their reference counts.

Thanks!

(XEN) Memory pages belonging to domain 1:
(XEN)     DomPage 000000019ddbf000: mfn=000000000019ddbf, caf=00000001, 
taf=0000000080000001
(XEN) Memory pages belonging to domain 2:
(XEN)     DomPage 00000001f4dbc000: mfn=00000000001f4dbc, caf=00000001, 
taf=0000000080000001

#define PGT_l4_page_table   (4UL<<29) /* using this page as an L4 page table? */

Is it possible we do something unusual, and there's an accounting bug? It seems
that vcpu_destroy_pagetables() should kill any active reference. If I boot into
the kernel debugger (so no userspace) and destroy the domain, it still happens.

Before I try and work up something to track references to the kernel's
CR3 dompage, any suggestions or ideas?

thanks
john

PS what's the difference between PGT_base/root_page_table?

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