All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Vrabel <david.vrabel@citrix.com>
To: Roger Pau Monne <roger.pau@citrix.com>, xen-devel@lists.xenproject.org
Cc: Tim Deegan <tim@xen.org>, Ian Campbell <ian.campbell@citrix.com>,
	Jan Beulich <jbeulich@suse.com>
Subject: Re: [PATCH] xen: don't flush the TLB on grant unmap for auto-translated guests
Date: Tue, 6 May 2014 18:01:26 +0100	[thread overview]
Message-ID: <53691566.90900@citrix.com> (raw)
In-Reply-To: <1399394260-30381-1-git-send-email-roger.pau@citrix.com>

On 06/05/14 17:37, Roger Pau Monne wrote:
> For auto-translated guests the p2m code will do the necessary TLB
> flushes, so there's no need to perform any TLB flushes in generic
> grant table code.
> 
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Tim Deegan <tim@xen.org>
> Cc: Ian Campbell <ian.campbell@citrix.com>
> ---
>  xen/common/grant_table.c |   12 ++++++++----
>  1 files changed, 8 insertions(+), 4 deletions(-)
> 
> diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c
> index 107b000..a2a857f 100644
> --- 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);
}

?

David

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2014-05-06 17:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-06 16:37 [PATCH] xen: don't flush the TLB on grant unmap for auto-translated guests Roger Pau Monne
2014-05-06 17:01 ` David Vrabel [this message]
2014-05-07  8:15   ` Jan Beulich
2014-05-07 10:00     ` Roger Pau Monné
2014-05-07 11:35       ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53691566.90900@citrix.com \
    --to=david.vrabel@citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=roger.pau@citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.