qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Howard Spoelstra" <hsp.cat7@gmail.com>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Richard Henderson" <rth@twiddle.net>,
	qemu-ppc <qemu-ppc@nongnu.org>,
	"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
	"Cleber Rosa" <crosa@redhat.com>
Subject: Re: [Qemu-devel] [Qemu-ppc] 2x-3x tcg performance regression on ppc64 (maybe others)
Date: Tue, 5 Feb 2019 16:11:36 +0100	[thread overview]
Message-ID: <e657a5ba-71da-8b49-d3e5-35e732991816@redhat.com> (raw)
In-Reply-To: <CAFEAcA8udaag9C6-_E0FN5skVjps1fTUGfa0w+j0yauvg3wUXw@mail.gmail.com>

On 2/5/19 4:08 PM, Peter Maydell wrote:
> On Tue, 5 Feb 2019 at 14:47, Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
>> I was going to send this patch and was looking for to fill the
>> "Reported-by" tag to finalize the commit description before sending:
>>
>> -- >8 --
>> diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h
>> index aa7b81aaf0..8dc2aab60e 100644
>> --- a/include/exec/exec-all.h
>> +++ b/include/exec/exec-all.h
>> @@ -418,7 +418,8 @@ static inline uint32_t tb_cflags(const
>> TranslationBlock *tb)
>>  static inline uint32_t curr_cflags(void)
>>  {
>>      return (parallel_cpus ? CF_PARALLEL : 0)
>> -         | (use_icount ? CF_USE_ICOUNT : 0);
>> +         | (use_icount ? CF_USE_ICOUNT : 0)
>> +         | CF_CLUSTER_MASK;
>>  }
> 
> That's not right, because it puts all-1s in the cluster field.
> That will happen to hit for TBs generated for CPUs in the
> "not in a cluster" default UNASSIGNED_CLUSTER_INDEX, but it's
> wrong for CPUs that are in a specifically assigned cluster
> and will result in those failing to hit cached TBs when they should.

Oh OK now I understand.

Thanks for the explanation!

Phil.

> 
> thanks
> -- PMM
> 

      reply	other threads:[~2019-02-05 15:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-01 21:53 [Qemu-devel] 2x-3x tcg performance regression on ppc64 (maybe others) Cleber Rosa
2019-02-02  0:09 ` Richard Henderson
2019-02-05  8:37 ` [Qemu-devel] [Qemu-ppc] " Howard Spoelstra
2019-02-05 13:45   ` Peter Maydell
2019-02-05 14:47     ` Philippe Mathieu-Daudé
2019-02-05 15:08       ` Peter Maydell
2019-02-05 15:11         ` Philippe Mathieu-Daudé [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=e657a5ba-71da-8b49-d3e5-35e732991816@redhat.com \
    --to=philmd@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=crosa@redhat.com \
    --cc=hsp.cat7@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=rth@twiddle.net \
    /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;
as well as URLs for NNTP newsgroup(s).