Received: from eggs.gnu.org ([2001:4830:134:3::10]:54028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddKUS-0003uZ-Oi for qemu-devel@nongnu.org; Thu, 03 Aug 2017 14:04:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddKUO-0001lT-JW for qemu-devel@nongnu.org; Thu, 03 Aug 2017 14:04:56 -0400 Received: from mail-qk0-x244.google.com ([2607:f8b0:400d:c09::244]:33356) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddKUO-0001km-CF for qemu-devel@nongnu.org; Thu, 03 Aug 2017 14:04:52 -0400 Received: by mail-qk0-x244.google.com with SMTP id d145so2041058qkc.0 for ; Thu, 03 Aug 2017 11:04:52 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= References: <20170629010300.2848-1-f4bug@amsat.org> <20170629010300.2848-7-f4bug@amsat.org> <9a40c690-0b80-cd34-6129-849703b452e2@amsat.org> <87a83reidf.fsf@linaro.org> <748298c3-8616-05b7-d4f0-1287c625739a@amsat.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: <32be245a-139e-ba83-19d7-dbca4b3f202a@amsat.org> Date: Thu, 3 Aug 2017 15:04:47 -0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH 6/8] tcg/tci: disable MTTCG if TCI is enabled List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , =?UTF-8?Q?Alex_Benn=c3=a9e?= , Peter Maydell Cc: qemu-devel@nongnu.org, Paolo Bonzini , Stefan Weil , Thomas Huth , Jaroslaw Pelczar On 08/03/2017 02:56 PM, Richard Henderson wrote: > On 08/03/2017 10:40 AM, Philippe Mathieu-Daudé wrote: >> On 07/26/2017 05:02 AM, Alex Bennée wrote: >>> >>> Philippe Mathieu-Daudé 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... >> >> Hmmm this is the user enabling TCI, I'm not sure about "forcing it". >> Now MTTCG is enforced by the ./configure and there is no option to disable it. > > Er, no. > > If you write "-accel tcg" you are not forcing mttcg on. > If you write "-accel tcg,thread=multi" you are forcing it on. Ok! I obviously missed this part. > If you write "-accel tcg,thread=single" you are forcing it off. > > MTTCG is only enabled by default if TCG_TARGET_DEFAULT_MO is defined, and in > the case of TCI, it is not. Ok, so I misunderstood Alex :) I thought about ./configure enabled while he was describing -accel enabled. Thanks for pointing that out :) > > > r~ >