Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp969828rda; Sun, 22 Oct 2023 19:34:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2UuM7NteH65Er3f5XPGvozZg5DADQ5rnLMkt/oOOXmHRq2V1dDGOuUIkS+/39iQhhris3 X-Received: by 2002:a17:902:eecc:b0:1c5:ba50:2b28 with SMTP id h12-20020a170902eecc00b001c5ba502b28mr7549778plb.25.1698028476954; Sun, 22 Oct 2023 19:34:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698028476; cv=none; d=google.com; s=arc-20160816; b=OXe0GVwOKNI2MiQN2zRCcWDdr5T9960OXehnfdR+/NxpKRh5EzPiko1q3Bn6XWJlwP WxzMrxWaNp8Qc3t7+fdqqKt4E/4nnmsFl/d0WUXuzinbjz4Fo0evLQ5jQAdaNrwhNVnW E+/1ONwjiTT1DFqRiEDNhbOC+5spXDB/ixpEyDPs/pPTnFSFVTJ0i3gELcnYcqdpw35P vQsatVs3t16Q4uK2+9xbSkmbS/cyj4tsjm/FfgOf/ekqEda68o6wZf2D6gIWCN5cRnC+ KZUOzNMLpr0ZhVaOxVvLB0ooTMpOz/4q2uOY1NTclzNlpcQ8tbSCS8Az+6vGHTPF26PU LoRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cX1hDm/QiO9zSpl0ScMGKNvRPEWN4dSyasZUYFS2Au8=; fh=FjD4yR7tj93g39MkM605NjHyBRkOobMxsX/jeO9uTl0=; b=L6sM1VsfHt2lBptPQFYgkTCrATKnySm5kfhly3d5SVjO/ZswTkAjBPn6xpZ0E+BLYM 3u/BQPHVCbdpLpe1fhOzd+LY7OhglPllnLcpwDJ0gEu36ZqLbBhGfJd6Og03dZEmz4gG 6R/jZSnBfxsBCG3BGmRAJMlMGh9EbgyRUS9/WNszNSwyISeQ1/Fx/ZRRTR7bwGYdJUw0 Bluu4qcSEexn+d2Mr4DSbcrHE9rBeqn2seY9ZG8iVBW3UHfkm1qyLRuN3YvmRhiBAWRB p0vDzTNxQ+6+CDB/FlzwhgmN6op5bHtYDVnMi7gWJ28KIoeDqHldKDN6zgDJOSmNu+wm 6xdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b=Ngzki8Sx; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id w13-20020a1709027b8d00b001bf0e15c0a9si5376412pll.269.2023.10.22.19.34.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 19:34:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b=Ngzki8Sx; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 8FCA58065C82; Sun, 22 Oct 2023 19:34:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229460AbjJWCea (ORCPT + 99 others); Sun, 22 Oct 2023 22:34:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjJWCe3 (ORCPT ); Sun, 22 Oct 2023 22:34:29 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D50519E for ; Sun, 22 Oct 2023 19:34:27 -0700 (PDT) Received: from cwcc.thunk.org (pool-173-48-111-143.bstnma.fios.verizon.net [173.48.111.143]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 39N2YH4R007249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 22 Oct 2023 22:34:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1698028459; bh=cX1hDm/QiO9zSpl0ScMGKNvRPEWN4dSyasZUYFS2Au8=; h=Date:From:Subject:Message-ID:MIME-Version:Content-Type; b=Ngzki8SxclP0AGy3UqGgmxNqal42wFIiIXEU9GQcNhco6XeGzJJfwzGepGhf7GHJH m7Uhgvm5dkHgmIfCVKnWZ9JUyZaU3pm0u30Pec11PFKDSVyFyni8n5U/wHAUwn1csU l17evK1g+2+slRZEfR05d8Os8vYesoeJLbfVCzrdGeeDTYvfePJ0dMyjaYzV88CDF8 H2/KG6b3KXHYvFtxDoN6hMZg3VVAgfcPPp82h/eqIQU6Gfh9+1wTTBKvRi0hJUm77L YkM5sMNuhWdSpgtF7sbqYq+/BGDxqVmv7sCv0e8qv6nIt6V4vBfvmq24SrkHgC/YFj YZ6LQgzT/7xcA== Received: by cwcc.thunk.org (Postfix, from userid 15806) id 9520815C0247; Sun, 22 Oct 2023 22:34:17 -0400 (EDT) Date: Sun, 22 Oct 2023 22:34:17 -0400 From: "Theodore Ts'o" To: "Ritesh Harjani (IBM)" Cc: linux-ext4@vger.kernel.org, Ojaswin Mujoo , ebiggers@google.com, fstests@vger.kernel.org Subject: New archtecture support in xfstests-bld Message-ID: <20231023023417.GA1778210@mit.edu> References: <060d9fef332979fd5d53b1c28c13b2043a16ab25.1696965271.git.ritesh.list@gmail.com> <20231012172835.GD255452@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231012172835.GD255452@mit.edu> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 22 Oct 2023 19:34:34 -0700 (PDT) Hey Ritesh, I just pulled some changes from Eric Biggers into xfstests-bld which has a start on adding riscv64 support to kvm-xfstests. So far, he's updated libaio to a newer upstream version (newer is relative; the "new" version was last updated six years ago :-) for better RiscV support, and he's added RiscV support to set_canonicalized_arch(). I'd recommend that you start with the latest upstream version of xfstests-bld, and then add support for powerpcle64 by adding support to find_kernel_to_use() in run=fstests/util/parse_opt_funcs, and set_cross_compile() and get_kernel_file_info() in run-fstests/util-arch, since those changes in the 2/2 patch series[1] were clearly correct. (And Eric, you should take a look at those changes[1] for RiscV support.) [1] https://lore.kernel.org/all/eb1f8f0fb0ff9a6358129a2a45bd0c88421ac669.1696965271.git.ritesh.list@gmail.com/ I'd also encourage you to add support for the new architectures in selftests/appliance, since that will exercise building a kernel for the foreign architecture using cross-compilation, and then using qemu-system-$ARCH from kvm-xfstests. (Yes, kvm-xfstests is starting to get very much misnamed; but kvm is easier to type, and autocompletes much more nicely than qemu-. The string "kvm" also is sprinkled all over the xfstests-bld scripts, and I'm not convinced it's worth changing. That being said, I've added a qemu-xfstests script which gets installed into the user's bin directory; we'll see if that is something people feel strongly about using the new name.) Finally, since have two separate efforts to add support for new architectures to xfstests-bld, might I prevail on you to keep some notes about what's needed to bootstrap a new architecture? That might be helpful for some future developer. Many thanks! - Ted