Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5992FC433E0 for ; Wed, 10 Feb 2021 13:49:53 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E8E2564E6F for ; Wed, 10 Feb 2021 13:49:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E8E2564E6F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:33308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9psN-0006Io-V2 for qemu-devel@archiver.kernel.org; Wed, 10 Feb 2021 08:49:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9prh-0005TW-OP for qemu-devel@nongnu.org; Wed, 10 Feb 2021 08:49:09 -0500 Received: from mx2.suse.de ([195.135.220.15]:54450) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9prf-000229-SH for qemu-devel@nongnu.org; Wed, 10 Feb 2021 08:49:09 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id BC5DFAB98; Wed, 10 Feb 2021 13:49:04 +0000 (UTC) Subject: Re: [PATCH v16 21/23] accel: introduce new accessor functions To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Richard Henderson , =?UTF-8?Q?Alex_Benn=c3=a9e?= , Paolo Bonzini , Eduardo Habkost , Peter Maydell References: <20210204163931.7358-1-cfontana@suse.de> <20210204163931.7358-22-cfontana@suse.de> <2bb1cba6-e1a0-80a7-4c05-fb221f4f8230@linaro.org> <16c471e4-06a9-92bf-2d6f-0da0b0fc5a50@suse.de> <055de896-2354-ebce-baed-11c801e53964@redhat.com> From: Claudio Fontana Message-ID: <96fc5b2e-3198-d75f-1f4b-bda8383a9c11@suse.de> Date: Wed, 10 Feb 2021 14:49:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <055de896-2354-ebce-baed-11c801e53964@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=195.135.220.15; envelope-from=cfontana@suse.de; helo=mx2.suse.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.211, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Thomas Huth , Alistair Francis , Roman Bolshakov , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 2/8/21 1:54 PM, Philippe Mathieu-Daudé wrote: > On 2/8/21 1:50 PM, Claudio Fontana wrote: >> On 2/5/21 9:14 PM, Richard Henderson wrote: >>> On 2/4/21 6:39 AM, Claudio Fontana wrote: >>>> @@ -6725,10 +6722,8 @@ static void x86_cpu_initfn(Object *obj) >>>> x86_cpu_load_model(cpu, xcc->model); >>>> } >>>> >>>> - /* if required, do the accelerator-specific cpu initialization */ >>>> - if (cc->accel_cpu) { >>>> - cc->accel_cpu->cpu_instance_init(CPU(obj)); >>>> - } >>>> + /* if required, do accelerator-specific cpu initializations */ >>>> + accel_cpu_instance_init(CPU(obj)); >>>> } >>> >>> Why is this only done for x86? >>> >>> >>> r~ >>> >> >> It makes sense to include the other architectures. >> >> As the next step I would like to apply this to ARM, but to me it makes sense to first complete Philippe's series, >> which reshuffles things so that TCG-only / KVM-only builds are both possible and error-free: >> >> https://www.mail-archive.com/qemu-devel@nongnu.org/msg777627.html > > TBH this series is very unlikely to be merged before yours, > so go ahead... (eventually you can cherry-pick what you need > from it). > > After taking a short look at the ARM side, I think I need first a detour to split more CONFIG_USER_ONLY code from the rest. I'll experiment with using meson to add a target-only user_ss variable, and apply it to i386 and arm. Ciao, Claudio