From: Keir Fraser Subject: Re: RFC: [0/2] Remove netloop by lazy copying in netback Date: Tue, 27 Mar 2007 11:40:00 +0100 Message-ID: References: <20070327102524.GA25582@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070327102524.GA25582@gondor.apana.org.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Herbert Xu , Keir Fraser Cc: Isaku Yamahata , Xen Development Mailing List List-Id: xen-devel@lists.xenproject.org On 27/3/07 11:25, "Herbert Xu" wrote: > Actually we can just mark the PTEs as not present in that case. The > hypervisor can then mark the PTEs as present on the first fault. > > Just as grant table operations currently work on virtual addresses for > non-translated guests and physical addresses for translated guests, > such an operation would work on PTEs for non-translated guests and > p2m entries for translated guests. Yeah, but: how does Xen efficiently work out whether a not-present fault is due to a lazy grant mapping and, if so, what it is that needs to be demand mapped? PV guests can store what they like in not-present pagetable entries. Perhaps we could make use of reserved bits in ptes instead (not that there are any in non-pae x86, but I'd very much like to obsolete non-pae x86 Xen after 3.0.5 anyway -- I don't think anyone actually ships a product with non-pae bits). -- Keir