public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrea Arcangeli <aarcange@redhat.com>
To: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Avi Kivity <avi@redhat.com>, kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: Defer remote tlb flushes on invlpg (v4)
Date: Mon, 20 Apr 2009 15:01:43 +0200	[thread overview]
Message-ID: <20090420130142.GD15228@random.random> (raw)
In-Reply-To: <20090419175428.GB28197@amt.cnet>

On Sun, Apr 19, 2009 at 02:54:28PM -0300, Marcelo Tosatti wrote:
> I'm fine with your kvm_flush_local_tlb. Just one minor nit:
> 
> +   /* get new asid before returning to guest mode */
> +   if (!test_bit(KVM_REQ_TLB_FLUSH, &vcpu->requests))
> +               set_bit(KVM_REQ_TLB_FLUSH, &vcpu->requests);
> 
> Whats the test_bit for?

To avoid a write in case it was already set... but thinking twice I
guess the probability that it's already set is near zero, so I'll
remove it and I'll just do set_bit.

> It was nice to hide explicit knowledge about
> vcpu->kvm->remote_tlbs_dirty behind the interface instead of exposing
> it.

Hmm ok, if you prefer it I'll add it back. I guess ..._tlb_dirty_cond
is better name so it's clear it's not just checking the cond but the
dirty flag too.

      reply	other threads:[~2009-04-20 13:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-19 13:17 [PATCH] KVM: Defer remote tlb flushes on invlpg (v3) Avi Kivity
2009-03-19 13:46 ` Andrew Theurer
2009-03-19 14:03   ` Avi Kivity
2009-03-29 10:36 ` Avi Kivity
2009-04-11 16:48   ` [PATCH] KVM: Defer remote tlb flushes on invlpg (v4) Andrea Arcangeli
2009-04-12 22:31     ` Marcelo Tosatti
2009-04-18 15:34       ` Andrea Arcangeli
2009-04-19 17:54         ` Marcelo Tosatti
2009-04-20 13:01           ` Andrea Arcangeli [this message]

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=20090420130142.GD15228@random.random \
    --to=aarcange@redhat.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=mtosatti@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox