qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
	Richard Henderson <rth@twiddle.net>, Stefan Weil <sw@weilnetz.de>,
	Peter Maydell <peter.maydell@linaro.org>,
	"Emilio G . Cota" <cota@braap.org>
Subject: Re: [Qemu-devel] [PATCH 6/8] tcg/tci: disable MTTCG if TCI is enabled
Date: Wed, 26 Jul 2017 09:02:04 +0100	[thread overview]
Message-ID: <87a83reidf.fsf@linaro.org> (raw)
In-Reply-To: <9a40c690-0b80-cd34-6129-849703b452e2@amsat.org>


Philippe Mathieu-Daudé <f4bug@amsat.org> writes:

> Hi Peter,
>
> I think this patch belongs to 2.10, as there is no time to fix TCI +
> MTTCG. Should I RESEND it alone with "for 2.10" subject?
>
> One other option might be disable TCI if MTTCG enabled, but there is
> no ./configure option for MTTCG while there is for TCI.
>
> Regards,
>
> Phil.
>
> On 06/28/2017 10:02 PM, Philippe Mathieu-Daudé wrote:
>> TCI + MTTCG cause strange errors...
>>
>>    $ arm-softmmu/qemu-system-arm -machine raspi2 -cpu cortex-a7 -smp 4 -accel tcg,thread=multi -kernel kernel7.img
>>    qemu-system-arm: Guest expects a stronger memory ordering than the host provides
>>    This may cause strange/hard to debug errors
>>    Segmentation fault (core dumped)

So this isn't TCI enabling MTTCG by accident - this is the user forcing
it when it wouldn't otherwise be enabled. Hence the scary warning...

>>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
>>   configure | 6 +++++-
>>   1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/configure b/configure
>> index c571ad14e5..510f443e06 100755
>> --- a/configure
>> +++ b/configure
>> @@ -6225,7 +6225,11 @@ fi
>>   if test "$target_softmmu" = "yes" ; then
>>     echo "CONFIG_SOFTMMU=y" >> $config_target_mak
>>     if test "$mttcg" = "yes" ; then
>> -    echo "TARGET_SUPPORTS_MTTCG=y" >> $config_target_mak
>> +    if test "$tcg_interpreter" = "yes" ; then
>> +        echo "TCI enabled, disabling MTTCG"
>> +    else
>> +        echo "TARGET_SUPPORTS_MTTCG=y" >> $config_target_mak
>> +    fi
>>     fi
>>   fi
>>   if test "$target_user_only" = "yes" ; then
>>


--
Alex Bennée

  reply	other threads:[~2017-07-26  8:02 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-29  1:02 [Qemu-devel] [RFC PATCH 0/8] removal of tci (tcg interpreter) Philippe Mathieu-Daudé
2017-06-29  1:02 ` [Qemu-devel] [PATCH 1/8] MAINTAINERS: update TCG entries Philippe Mathieu-Daudé
2017-06-29  1:02 ` [Qemu-devel] [PATCH 2/8] MAINTAINERS: update KVM entries Philippe Mathieu-Daudé
2017-06-29  1:02 ` [Qemu-devel] [PATCH 3/8] MAINTAINERS: update Xen entry Philippe Mathieu-Daudé
2017-06-29 10:39   ` Anthony PERARD
2017-06-29 11:54     ` Philippe Mathieu-Daudé
2017-06-29 11:47   ` Paolo Bonzini
2017-06-29  1:02 ` [Qemu-devel] [PATCH 4/8] MAINTAINERS: update TCI entry Philippe Mathieu-Daudé
2017-06-29  1:02 ` [Qemu-devel] [PATCH RESEND 5/8] tcg/tci: enable bswap16_i64 Philippe Mathieu-Daudé
2017-06-29 16:29   ` Eric Blake
2017-06-29 16:41     ` Philippe Mathieu-Daudé
2017-06-29 16:52     ` Stefan Weil
2017-06-29 17:02       ` Philippe Mathieu-Daudé
2017-06-29  1:02 ` [Qemu-devel] [PATCH 6/8] tcg/tci: disable MTTCG if TCI is enabled Philippe Mathieu-Daudé
2017-07-26  1:28   ` Philippe Mathieu-Daudé
2017-07-26  8:02     ` Alex Bennée [this message]
2017-08-03 17:40       ` Philippe Mathieu-Daudé
2017-08-03 17:56         ` Richard Henderson
2017-08-03 18:04           ` Philippe Mathieu-Daudé
2017-06-29  1:02 ` [Qemu-devel] [RFC PATCH 7/8] tcg/tci: time to remove it :( Philippe Mathieu-Daudé
2017-06-29  8:36   ` Daniel P. Berrange
2017-06-29  1:03 ` [Qemu-devel] [RFC PATCH 8/8] travis: remove tcg/tci job Philippe Mathieu-Daudé
2017-06-29  8:46 ` [Qemu-devel] [RFC PATCH 0/8] removal of tci (tcg interpreter) Thomas Huth
2017-06-29 14:57   ` Philippe Mathieu-Daudé
2017-06-29 15:06   ` Paolo Bonzini
2017-06-29 15:46     ` Thomas Huth
2017-06-29 15:47       ` Paolo Bonzini
2017-06-29 16:02         ` Thomas Huth
2017-06-29 16:18         ` Philippe Mathieu-Daudé
2017-06-29 16:45         ` Stefan Weil
2017-06-29 16:59           ` Peter Maydell
2017-06-29 16:07       ` Daniel P. Berrange
2017-06-29 16:13         ` Peter Maydell
2017-06-29 16:17         ` Thomas Huth
2017-06-29 18:09 ` Stefan Weil
2017-06-30  9:24   ` Peter Maydell
2017-07-06 23:49 ` no-reply
2017-07-07  0:04   ` Fam Zheng

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=87a83reidf.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=cota@braap.org \
    --cc=f4bug@amsat.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=sw@weilnetz.de \
    /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).