From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 4CDE1C433DB for ; Wed, 3 Mar 2021 17:58:47 +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 B097F64EF1 for ; Wed, 3 Mar 2021 17:58:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B097F64EF1 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]:53180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHVll-0000B4-O3 for qemu-devel@archiver.kernel.org; Wed, 03 Mar 2021 12:58:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHVkU-0007Qy-0X for qemu-devel@nongnu.org; Wed, 03 Mar 2021 12:57:27 -0500 Received: from mx2.suse.de ([195.135.220.15]:35988) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHVkR-0001FZ-LZ for qemu-devel@nongnu.org; Wed, 03 Mar 2021 12:57:25 -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 32D98ACBC; Wed, 3 Mar 2021 17:57:20 +0000 (UTC) Subject: Re: [RFC v1 00/38] arm cleanup experiment for kvm-only build To: =?UTF-8?Q?Alex_Benn=c3=a9e?= References: <20210221092449.7545-1-cfontana@suse.de> <875z2k53mn.fsf@linaro.org> <63847c79-93c2-5ee3-d568-9091fedf325c@suse.de> <87a6rmkffo.fsf@linaro.org> From: Claudio Fontana Message-ID: <8d4a427a-94dd-7472-e8ae-98c4efa44ce0@suse.de> Date: Wed, 3 Mar 2021 18:57:19 +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: <87a6rmkffo.fsf@linaro.org> 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: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, 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: Peter Maydell , Eduardo Habkost , Richard Henderson , qemu-devel@nongnu.org, Roman Bolshakov , Paolo Bonzini , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 3/1/21 5:23 PM, Alex Bennée wrote: > > Claudio Fontana writes: > >> On 2/23/21 10:18 AM, Philippe Mathieu-Daudé wrote: >>> On 2/22/21 8:00 PM, Alex Bennée wrote: >>>> >>>> Claudio Fontana writes: >>>> >>>>> Hi all, >>>>> >>>>> this is an experiment, a cleanup based on and requiring the series >>>>> "i386 cleanup PART 2": >>>>> >>>>> https://lists.gnu.org/archive/html/qemu-devel/2021-02/msg05935.html >>>>> >>>>> The goal is to split the code between TCG-only and non-TCG code, >>>>> fixing the KVM-only build (configure --disable-tcg), >>>>> >>>>> and laying the ground for further cleanups and the use of the >>>>> new accel objects in the hierarchy to specialize the cpu >>>>> according to the accelerator. >>>>> >>>>> This is known to be an early state, with probably a lot of work >>>>> still needed. >>>> >>>> Well early work is looking pretty good: >>>> >>>> 18:59:22 [alex@idun:~/l/q/b/default] review/arm-cleanup-rfc1|… ± ls -lh qemu-system-aarch64 >>>> -rwxr-xr-x 1 alex alex 107M Feb 22 18:08 qemu-system-aarch64* >>>> 18:59:29 [alex@idun:~/l/q/b/default] review/arm-cleanup-rfc1|… ± ls -lh ../disable.tcg/qemu-system-aarch64 >>>> -rwxr-xr-x 1 alex alex 76M Feb 22 17:47 ../disable.tcg/qemu-system-aarch64* >>> >>> :~) >>> >>>> >>>> and I've tested the KVM side works well enough with a basic image. >>> >>> >> >> I am working on the next version, one thing I noticed among others as I get close to the v2, >> is the fact that tests/ for arm require tcg in many cases. > > I think in a lot of cases they are historical because developers > generally weren't running on native hardware. That said off the top of > my head: > > tests/tcg - linux-user, so implies TCG > tests/tcg/system - use semihosting (at least for arm/aarch64) - which implies TCG > tests/acceptance/[replay_kernel/reverse_debugging/tcg_plugins] - all need TCG features > > I don't think there is any reason the others can't run with KVM - and > probably should on real hardware. One thing I noticed is that tests try to run qemu-system-aarch64 with accel "qtest" and machine "virt", and the thing tries to create a cortex-a15 cpu model for some unknown reason. Digging and sweating.. Ciao, Claudio > >> >> So there is even more cleanup needed to discern which are actually tcg-only, and how to tweak the others into working also with only kvm available.. >> >> Ciao, >> >> Claudio > >