From: Herbert Xu Subject: Re: RFC: [0/2] Remove netloop by lazy copying in netback Date: Sun, 25 Mar 2007 21:41:28 +1000 Message-ID: <20070325114128.GA5950@gondor.apana.org.au> References: <20070323031757.GA16250@gondor.apana.org.au> <20070323114217.GA19018@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20070323114217.GA19018@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: Keir Fraser Cc: Xen Development Mailing List List-Id: xen-devel@lists.xenproject.org On Fri, Mar 23, 2007 at 10:42:17PM +1100, Herbert Xu wrote: > On Fri, Mar 23, 2007 at 10:32:37AM +0000, Keir Fraser wrote: > > > > It still sounds like it would work. The fragment's 'struct page *' will map > > to a particular kernel virtual addres. That kernel virtual address can be > > transformed by arithmetic back to the 'struct page *'. The fact that the pte > > that maps that kernel virtual address actually points over at some other > > poor unsuspecting pfn (which already has a struct page *, thank you very > > much) doesn't actually matter, does it? Does anyone ever go look at the pte > > contents and try to work out the 'struct page *' from that? I doubt it -- or > > our netback driver would not work right now on x86 (as the mach-to-phys > > entry is garbage from the p.o.v. of dom0, so any attempt to translate the > > pte contents into something meaningful in pseudophys space would fail). > > You're right, it's not as bad as I thought. Actually looking into it further for ia64 there is still a problem. We use large pages for the identity mapping on ia64. In order to modify the PTE we'd have to break the large pages. Am I missing something obvious? Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt