Received: from eggs.gnu.org ([2001:4830:134:3::10]:42135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddKM2-0007Cj-KC for qemu-devel@nongnu.org; Thu, 03 Aug 2017 13:56:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddKLy-0001BR-Fs for qemu-devel@nongnu.org; Thu, 03 Aug 2017 13:56:14 -0400 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]:35050) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ddKLy-000184-AJ for qemu-devel@nongnu.org; Thu, 03 Aug 2017 13:56:10 -0400 Received: by mail-pf0-x242.google.com with SMTP id j68so2148638pfc.2 for ; Thu, 03 Aug 2017 10:56:08 -0700 (PDT) Sender: Richard Henderson 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: Richard Henderson Message-ID: Date: Thu, 3 Aug 2017 10:56:03 -0700 MIME-Version: 1.0 In-Reply-To: <748298c3-8616-05b7-d4f0-1287c625739a@amsat.org> Content-Type: text/plain; charset=utf-8 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: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , =?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 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. 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. r~