All of lore.kernel.org
 help / color / mirror / Atom feed
From: amateur <tianlei.zhao@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] TB Chaining NOT Reset on TLB Flush??
Date: Sun, 17 Jun 2007 11:11:36 +0800	[thread overview]
Message-ID: <20070617031136.GA3425@163.com> (raw)
In-Reply-To: <200706161427.06630.paul@codesourcery.com>

On Sat, Jun 16, 2007 at 02:27:05PM +0100, Paul Brook wrote:
> > I read from the Qemu internal documentation this:
> >     ``When MMU mappings change, only the chaining of the basic
> >     blocks is reset (i.e. a basic block can no longer jump directly
> >     to another one).''
> >
> > But when I read the code, I find that tlb_flush() doesn't reset the
> > chaining between TBs. Is that the intended behaviour?? Won't that
> > cause problems on guest context switch??
> 
> The internals documentation is out of date. TBs are only chained directly when 
> both source and destination are on the same page.
-------------------------
Thank you, Paul. I got it.

I can imagine that this decision is based on a performance evaluation,
right? But given that TLB flush(mov %cr3, %reg | invlpg) be a relative
rare case, it's hard to believe that reset the chaining on each TLB
flush would hurt the performance a lot. Can you shed some light on
where can I find some profiling data or performance statistics, or
links to some discussions on this?

-- 
You will not be elected to public office this year.

      reply	other threads:[~2007-06-17  3:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-16 13:22 [Qemu-devel] TB Chaining NOT Reset on TLB Flush?? amateur
2007-06-16 13:27 ` Paul Brook
2007-06-17  3:11   ` amateur [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=20070617031136.GA3425@163.com \
    --to=tianlei.zhao@gmail.com \
    --cc=qemu-devel@nongnu.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.