From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: [PATCH 1 of 5] Nested p2m: implement "flush" as a first-class action Date: Thu, 30 Jun 2011 11:51:05 +0200 Message-ID: <20110630095105.GA9431@aepfle.de> References: <44c7b977302663487922.1309171571@whitby.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <44c7b977302663487922.1309171571@whitby.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Deegan Cc: Christoph Egger , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Mon, Jun 27, Tim Deegan wrote: > diff -r b24018319772 -r 44c7b9773026 xen/arch/x86/mm/p2m.c > --- a/xen/arch/x86/mm/p2m.c Thu Jun 23 18:34:55 2011 +0100 > +++ b/xen/arch/x86/mm/p2m.c Fri Jun 24 16:24:44 2011 +0100 > @@ -1050,20 +1050,41 @@ p2m_getlru_nestedp2m(struct domain *d, s > return lrup2m; > } > > -static int > +/* Reset this p2m table to be empty */ > +static void > p2m_flush_locked(struct p2m_domain *p2m) > { > - ASSERT(p2m); > - if (p2m->cr3 == CR3_EADDR) > - /* Microoptimisation: p2m is already empty. > - * => about 0.3% speedup of overall system performance. > - */ > - return 0; > + struct page_info *top, *pg; > + struct domain *d = p2m->domain; Tim, one of these changes causes a build error: p2m.c:1105:20: error: unused variable 'd' [-Werror=unused-variable] Olaf