From: Tristan Gingold Subject: flush_tlb_mask and grant_table on ia64 Date: Fri, 21 Apr 2006 09:24:15 +0200 Message-ID: <200604210924.15846.Tristan.Gingold@bull.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-ia64-devel-bounces@lists.xensource.com Errors-To: xen-ia64-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 address range on every processors is also cheap (no IPI). Unfortunatly Xen common code flushes the whole TLB after unmapping grant reference. 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 then we need to disable the flush_tlb_mask call. What is the best solution? Thank you for comments, Tristan.