All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: Avi Kivity <avi@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: Defer remote tlb flushes on invlpg (v2)
Date: Tue, 17 Mar 2009 16:47:23 -0300	[thread overview]
Message-ID: <20090317194723.GA11703@amt.cnet> (raw)
In-Reply-To: <1237201670-5572-1-git-send-email-avi@redhat.com>

On Mon, Mar 16, 2009 at 01:07:50PM +0200, Avi Kivity wrote:
> KVM flushes tlbs on remote cpus for two purposes: to protect guest pages
> that it needs to collect information about, and to prevent stale tlb entries
> from pointing to pages that no longer belong to the guest.
> 
> We can defer the latter flushes to the point when we actually free the pages,
> which is during an mmu notifier invocation.  To this end, we add a new state
> remote_tlbs_dirty which marks whether the guest tlb might be inconsistent
> with the the shadow page tables.  Whenever we do a conditional flush of
> remote tlbs, we check this state, and if the remote tlbs are dirty we flush
> them to ensure no inconsistency.
> 
> [v2: add help kvm_flush_remote_tlbs_cond() to remove the need for callers
>      to care about the new logic]

Looks good, but Andrea should ack.



  reply	other threads:[~2009-03-17 19:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-16 11:07 [PATCH] KVM: Defer remote tlb flushes on invlpg (v2) Avi Kivity
2009-03-17 19:47 ` Marcelo Tosatti [this message]
2009-03-18  0:41 ` Andi Kleen
2009-03-18  6:23   ` Avi Kivity
2009-03-18 22:53 ` Andrea Arcangeli
2009-03-19 10:27   ` Avi Kivity
2009-03-19 10:29     ` Avi Kivity

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=20090317194723.GA11703@amt.cnet \
    --to=mtosatti@redhat.com \
    --cc=aarcange@redhat.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.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.