From: Hollis Blanchard Subject: Re: Re: [Xen-ia64-devel] flush_tlb_mask and grant_table on ia64 Date: Fri, 21 Apr 2006 16:15:46 -0500 Message-ID: <1145654146.15072.35.camel@basalt.austin.ibm.com> References: <2BF508F394C196468CCBEC031320DCDF3809F4@pdsmsx405> <200604210942.34354.Tristan.Gingold@bull.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200604210942.34354.Tristan.Gingold@bull.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tristan Gingold Cc: "Xu, Anthony" , xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, 2006-04-21 at 09:42 +0200, Tristan Gingold wrote: > Le Vendredi 21 Avril 2006 09:27, Xu, Anthony a =C3=A9crit : > > From: xen-ia64-devel-bounces@lists.xensource.com > > > > >[mailto:xen-ia64-devel-bounces@lists.xensource.com] On Behalf Of Tri= stan > > >Gingold > > >Sent: 2006?4?21? 15:24 > > >To: xen-devel@lists.xensource.com; xen-ia64-devel@lists.xensource.co= m > > >Subject: [Xen-ia64-devel] flush_tlb_mask and grant_table on ia64 > > > > > >Hi, > > > > > >on IA64 flushing the whole TLB is very expensive: this is a cpu tlb = flush > > > and clearing 16MB of memory (virtual tlb). > > >However, flushing an address range is rather cheap. Flushing an add= ress > > > range on every processors is also cheap (no IPI). > > > > > >Unfortunatly Xen common code flushes the whole TLB after unmapping g= rant > > >reference. > > > > Agreed > > > > >Currently, this is not done on IA64 because domain_dirty_cpumask is = never > > > set (bug!). > > > > > >We can flush TLB by range within destroy_grant_host_mapping. But th= en we > > > need to disable the flush_tlb_mask call. > > > > > >What is the best solution? > > > > It depends on the coverage of VHPT and coverage of purged page. > From my point of view, the problem is not the number of frames to be pu= rge. I=20 > suppose only a few pages are unmapped per unmap_grant_ref call (althoug= h I=20 > may be wrong here). >=20 > From my point of view the problem is how to make Xen common code more a= rch=20 > neutral. I think the obvious solution would be to provide more information to the arch code, e.g. flush_grant_ref(gnttab_unmap_grant_ref_t *ref) or maybe=20 flush_tlb_range(ulong maddr, ulong len) x86 could ignore this extra data and simply flush the whole TLB as it does now. --=20 Hollis Blanchard IBM Linux Technology Center