From: "Jan Beulich" Subject: Re: [PATCH] xen: don't flush the TLB on grant unmap for auto-translated guests Date: Wed, 07 May 2014 12:35:14 +0100 Message-ID: <536A3692020000780000FE1A@mail.emea.novell.com> References: <1399394260-30381-1-git-send-email-roger.pau@citrix.com> <53691566.90900@citrix.com> <536A07D0020000780000FB4A@mail.emea.novell.com> <536A0458.9050402@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wi084-00079p-Rm for xen-devel@lists.xenproject.org; Wed, 07 May 2014 11:35:16 +0000 In-Reply-To: <536A0458.9050402@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: =?UTF-8?Q?Roger=20Pau=20Monn=C3=A9?= Cc: xen-devel@lists.xenproject.org, Tim Deegan , David Vrabel , Ian Campbell List-Id: xen-devel@lists.xenproject.org >>> On 07.05.14 at 12:00, wrote: > On 07/05/14 10:15, Jan Beulich wrote: >>>>> On 06.05.14 at 19:01, wrote: >>> On 06/05/14 17:37, Roger Pau Monne wrote: >>>> --- a/xen/common/grant_table.c >>>> +++ b/xen/common/grant_table.c >>>> @@ -1099,7 +1099,8 @@ gnttab_unmap_grant_ref( >>>> guest_handle_add_offset(uop, 1); >>>> } >>>> >>>> - flush_tlb_mask(current->domain->domain_dirty_cpumask); >>>> + if ( !paging_mode_external(current->domain) ) >>>> + flush_tlb_mask(current->domain->domain_dirty_cpumask); >>> >>> Introduce >>> >>> void gnttab_flush_tlb(struct domain *d) >>> { >>> if ( !paging_mode_external(d) ) >>> flush_tlb_mask(d->domain_dirty_cpumask); >>> } >> >> Yes, please, but preferably as >> >> static void gnttab_flush_tlb(const struct domain *d) > > Any reason not to make it static inline void? I don't mind the inline, but also don't insist on it. Jan