From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apxk7-0002ic-Qq for qemu-devel@nongnu.org; Tue, 12 Apr 2016 08:48:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apxk2-0004Dz-5u for qemu-devel@nongnu.org; Tue, 12 Apr 2016 08:48:31 -0400 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:35988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apxk1-0004Dn-Up for qemu-devel@nongnu.org; Tue, 12 Apr 2016 08:48:26 -0400 Received: by mail-lf0-x231.google.com with SMTP id g184so23401320lfb.3 for ; Tue, 12 Apr 2016 05:48:25 -0700 (PDT) References: <1459870344-16773-1-git-send-email-alex.bennee@linaro.org> <1459870344-16773-9-git-send-email-alex.bennee@linaro.org> <570C0E16.1030304@gmail.com> <87mvozyrmo.fsf@linaro.org> From: Sergey Fedorov Message-ID: <570CEE95.50505@gmail.com> Date: Tue, 12 Apr 2016 15:48:21 +0300 MIME-Version: 1.0 In-Reply-To: <87mvozyrmo.fsf@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC v2 08/11] tcg: add options for enabling MTTCG List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= Cc: mttcg@listserver.greensocs.com, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, cota@braap.org, qemu-devel@nongnu.org, mark.burton@greensocs.com, pbonzini@redhat.com, jan.kiszka@siemens.com, rth@twiddle.net, peter.maydell@linaro.org, claudio.fontana@huawei.com, Peter Crosthwaite , =?UTF-8?Q?Andreas_F=c3=a4rber?= On 12/04/16 14:48, Alex Bennée wrote: > Sergey Fedorov writes: > >> On 05/04/16 18:32, Alex Bennée wrote: >>> diff --git a/qemu-options.hx b/qemu-options.hx >>> index a770086..4eca704 100644 >>> --- a/qemu-options.hx >>> +++ b/qemu-options.hx >>> @@ -3224,6 +3224,20 @@ Attach to existing xen domain. >>> xend will use this when starting QEMU (XEN only). >>> ETEXI >>> >>> +DEF("tcg", HAS_ARG, QEMU_OPTION_tcg, \ >>> + "-tcg [mttcg=on|off] control TCG options\n", QEMU_ARCH_ALL) >>> +STEXI >>> +@item -tcg >>> +@findex -tcg >>> +@table @option >>> +@item mttcg=[on|off] >>> +Control multi-threaded TCG. By default QEMU will enable multi-threaded >>> +emulation for front/back-end combinations that are known to work. The >>> +user may enable it against the defaults however odd guest behaviour >>> +may occur. >>> +@end table >>> +ETEXI >> Maybe we'd better use existing qemu accelerator framework and introduce >> "-machine accel=mttcg" option? > My worry would be breaking existing code which assumes kvm | tcg. We > will want to enable mttcg by default for combos that work without having > to tweak tooling that already uses the -machine options. You are right, we'd better make MTTCG as an option for TCG, not as a separate accelerator. Kind regards, Sergey