From: Andrea Arcangeli <aarcange@redhat.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm@vger.kernel.org, Marcelo Tosatti <mtosatti@redhat.com>
Subject: Re: missing kvm smp tlb flush in invlpg
Date: Sun, 15 Mar 2009 18:05:41 +0100 [thread overview]
Message-ID: <20090315170541.GJ27823@random.random> (raw)
In-Reply-To: <49BD2E36.8090103@redhat.com>
On Sun, Mar 15, 2009 at 06:35:02PM +0200, Avi Kivity wrote:
> Andrea Arcangeli wrote:
>> Ah so this was a proposed fix for this bug, I thought you were talking
>> about different bugs, and you didn't acknowledge this as a bug sorry!
>>
>>
>
> If ignoring bugs could make them go away...
;)
>> About the need_flush that could become a per-vcpu bit too cleared at
>> every exit so perhaps we'll never have to flush, but it'd need to stay
>> in the vcpu structure to avoid cacheline bouncing.
>>
>
> But then we need to set it for all vcpus on every invlpg. I'm assuming
> invlpg is much more frequent than mmu notifiers, so it's better to keep it
> global.
>
> We've already taken a shared cacheline when we acquired mmu_lock.
Ok.
> btw, it's probably better to apply your patch, then adapt it to the
> non-IPIing version; your patch is more suitable for -stable.
It's up to you, I guess it'll make life easier with the compat code ;).
next prev parent reply other threads:[~2009-03-15 17:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-12 17:18 missing kvm smp tlb flush in invlpg Andrea Arcangeli
2009-03-15 10:35 ` Avi Kivity
2009-03-15 16:16 ` Andrea Arcangeli
2009-03-15 16:19 ` Avi Kivity
2009-03-15 16:30 ` Andrea Arcangeli
2009-03-15 16:35 ` Avi Kivity
2009-03-15 17:05 ` Andrea Arcangeli [this message]
2009-03-16 10:16 ` Avi Kivity
2009-03-15 19:23 ` Marcelo Tosatti
2009-03-15 20:11 ` Izik Eidus
2009-03-16 18:22 ` Marcelo Tosatti
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=20090315170541.GJ27823@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