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] Simplify paging_invlpg when flush is not require

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Simplify paging_invlpg when flush is not required.
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Mon, 4 Feb 2008 11:04:54 +0000
Cc: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 04 Feb 2008 03:06:10 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C3CB320B.13349%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: <D470B4E54465E3469E2ABBC5AFAC390F024D8F3D@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C3CB320B.13349%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)
At 08:55 +0000 on 03 Feb (1202028939), Keir Fraser wrote:
> Is there a significant advantage to doing this? One other comment is that I
> don't like extra boolean 0/1 arguments to functions. I'd rather have
> something like paging_invlpg() and paging_invlpg_noflush() and only have the
> boolean argument to paging.mode->invlpg().

As someone (probably Kevin) pointed out before, the entire guest-walk
in sh_invlpg is redundant because we maintain TLB flush discipline on
shadow l2es ourselves.  Cleaning that up was on the list of things to do
when the out-of-sync shadows are done.  If we're going to change this
code now, the right thing to do is to kill off sh_invlpg entirely, except
for the call to vtlb_flush().  Then there's no need for it to return a
value at all. 

Cheers,

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]

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