From: Avi Kivity <avi@redhat.com>
To: Andrew Theurer <habanero@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>,
Andrea Arcangeli <aarcange@redhat.com>,
kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: Defer remote tlb flushes on invlpg (v3)
Date: Thu, 19 Mar 2009 16:03:07 +0200 [thread overview]
Message-ID: <49C2509B.5060607@redhat.com> (raw)
In-Reply-To: <49C24C9C.9080101@linux.vnet.ibm.com>
Andrew Theurer wrote:
> Avi Kivity wrote:
>> KVM currently flushes the tlbs on all cpus when emulating invlpg. This
>> is because at the time of invlpg we lose track of the page, and leaving
>> stale tlb entries could cause the guest to access the page when it is
>> later freed (say after being swapped out).
>>
>> However we have a second change to flush the tlbs, when an mmu
>> notifier is
>> called to let us know the host pte has been invalidated. We can safely
>> defer the flush to this point, which occurs much less frequently. Of
>> course,
>> we still do a local tlb flush when emulating invlpg.
>>
> I should be able to run some performance comparisons with this in the
> next day or two.
Excellent. Note that while this does not improve performance relative
to released versions of kvm; rather it undoes a performance regression
caused by 967f61 ("KVM: Fix missing smp tlb flush in invlpg"), which
fixes a memory corruption problem.
The workloads which will exercise this are mmu-intensive smp workloads
with CONFIG_HIGHMEM (or CONFIG_HIGHMEM64) guests; 32-bit RHEL 3 is a
pretty bad offender.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2009-03-19 14:03 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 [this message]
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
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=49C2509B.5060607@redhat.com \
--to=avi@redhat.com \
--cc=aarcange@redhat.com \
--cc=habanero@linux.vnet.ibm.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