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] x86/PAE partially linear page table support

To: "Keir Fraser" <keir@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] x86/PAE partially linear page table support
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Thu, 15 Feb 2007 13:08:37 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 15 Feb 2007 05:07:27 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C1F9FB59.9781%keir@xxxxxxxxxxxxx>
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: <45D454F0.76E4.0078.0@xxxxxxxxxx> <C1F9FB59.9781%keir@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>That's not what I mean. Say we have two L2 tables, A and B. A[0] references
>B and B[0] references A. Even when all external references to A and B have
>gone away (i.e., there are no references from L3 tables) the type counts of
>A and B will both be non-zero because of the circular reference. This will
>prevent the pages from being freed and, ultimately, can lead to the domain
>never being destroyed.
>
>This case needs to be handled. See the code just below the largest comment
>in arch/x86/domain.c:relinquish_memory() to see how it's handled for
>top-level pagetables. Unfortunately it doesn't quite trivially generalise.

Hmm, it would seem to me that while it may not easily generalize, it at least
properly extends to the case the patch tries to address, by exchanging
PGT_base_page_table against PGT_l2_page_table. Really, in current code
this can never happen for PGT_base_page_table in PAE (or compat mode
guests), as such references aren't being established anywhere, and hence
the code should be dead for such guests.

But even for the general case - wouldn't it be possible to call
relinquish_memory() CONFIG_PAGING_LEVELS-1 times, each time lowering
the level of page tables that can be forced invalid by one?

Jan

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