Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1659169rwb; Sun, 15 Jan 2023 02:02:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXuR3ecT3AZAp4zj7JTW7rmLbi3gK5Kqkb4YWpqDPIBlnC7+Q2jd5Bx5vFno7yclDRrASfEu X-Received: by 2002:a17:907:1621:b0:870:34c:97df with SMTP id hb33-20020a170907162100b00870034c97dfmr1480607ejc.4.1673776927723; Sun, 15 Jan 2023 02:02:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673776927; cv=none; d=google.com; s=arc-20160816; b=mnaD342PoJLXfzF1I+EPo8oYUaLxoa5msV2hJx0fH1C/na0/xlsKezwdZ1XDM3wBNS PVvLvGtQ9sVB+D1epIGKvQQ10/ArY+ruhj9fuAvUiCkpXlfUY+ZFiD4h0oJRuiCpH7ii JMUD/V/orBW/vBysSVjwkTb/Ris26wSWP7KLnfyDKOmSKl2FXwd1JfF7OBCMx291ffdC PPLeI15hVAdBrLC7DRVojJ9pI2z3iCvUx5Dn3phjvModnqbIWM9V6FKDyAeltfmNzWcn t9R8m7SKISu1USwzSLqiN0W5dKZvvTPuy/TKjl4Nn5S9+a+xEQXYv5kGo0XH/bUXkM6o l7gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=SJbXc+feWdrqTlshVGwB3Z4oTlL8/3Lfs4lGSV6qQxc=; b=lOVeEOC1b19DABl9U/tXFMyWg9dhSfVrA9GklnABGf3C9Nta9e40t/1laux7RpBloZ u4Opj5Z6UyUg8cs18kRZ4svX0ufhUYg37Cr20b4g87P7vYgfN3+7CdRIX2rvvrjAo9I2 4CZ3tNtulHuN6rGemqPb8AAHQHyqWCi4Co5HXwblS3A16kzoiSLIBjAv0H5KW26no9ER 2/aeQW9erNxJdKrCGpxUVZNQxYT09tbDvbkr/5gLOadaEqRU8Zs/cQsnNQVg/MWXgcFg 1KN6md6SpAnCpFMCkol1WXVzh5iUZQ93/HZEX8WrPDl1hjWDZ0qfWEY1qx2hw/u/wbVf e52g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SVOysDXI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xd9-20020a170907078900b007c16107b16bsi16464709ejb.432.2023.01.15.02.01.53; Sun, 15 Jan 2023 02:02:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SVOysDXI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230003AbjAOJuV (ORCPT + 52 others); Sun, 15 Jan 2023 04:50:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230290AbjAOJuP (ORCPT ); Sun, 15 Jan 2023 04:50:15 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02049B75B; Sun, 15 Jan 2023 01:50:15 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id z11so37035115ede.1; Sun, 15 Jan 2023 01:50:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=SJbXc+feWdrqTlshVGwB3Z4oTlL8/3Lfs4lGSV6qQxc=; b=SVOysDXI/KdXRRvrXHp0ya1LDMJuBWI61lpO+oK8r+0aY0CcpgvqzbUtdCl5zqYJLW isB7u9qMSzWpo6eY0TS6hauX8sJOWcviFR8RAwzFr2CVRXF+oTMAIriKigeZazZK1CoG HAj3ZyuY+W4j0jj7VINqFaK7aCX9jhqKoGUgeCxNZWPwaoV89H7JPZhUHTnSQ37a+ALA An3bX5fpT35o0TEQYAp4jWgWOenmUfSx+1MTB1cmFUnuvINZu6sXRMGqFil3Lm4ES5iF wc3mFjKJUT8wzf0E0mecWKemtuHyjH1qnsuIEFd0u81BWAam9kVqlmsm3FYamSyDkUMf tBJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SJbXc+feWdrqTlshVGwB3Z4oTlL8/3Lfs4lGSV6qQxc=; b=rWOaWCEphic3nONo1i4w2mDIYuVk5qqMZyKRE1+iXuvdU2bpEJNka8pnzaM1LBBBnb /jXjrohojxqMcVDBoel4yMW6C1UheXv4Mlm0K5d2pAuurDjYQHHrWhO8y8DcGm+k6Err oinFn2AGr+waqclfOGa2cU8kasXicnE7Omn/n1EOXk9lMponcYiTwbu+g6uBhuj8RaqF k+Sq7/46lTmg1yJPVfO0Z7o1ww/aSHEl8YT+rNDV5zUi7tkoRGiLmYNG6GuIBzej599o oYmgUeQfOeRWXkBgCn/KqmWzJkLExiNtH/+viU/YdKicBBc3tpkPdNsos577lGWZTXxY 9WYw== X-Gm-Message-State: AFqh2kqysYRdrM6pU544+5RW6ZJbz76n3M8O93LDA3TmRA5F3LBnMpWI +6A9foVogrEKEsJS+qZn+YJ5DYotBXJOfE211NQ= X-Received: by 2002:aa7:cc13:0:b0:49c:bc23:e5c0 with SMTP id q19-20020aa7cc13000000b0049cbc23e5c0mr964850edt.252.1673776213567; Sun, 15 Jan 2023 01:50:13 -0800 (PST) MIME-Version: 1.0 References: <20221217044436.4138642-1-davidgow@google.com> <20221217044436.4138642-4-davidgow@google.com> In-Reply-To: <20221217044436.4138642-4-davidgow@google.com> From: =?UTF-8?Q?Sergio_Gonz=C3=A1lez_Collado?= Date: Sun, 15 Jan 2023 10:49:37 +0100 Message-ID: Subject: Re: [PATCH 3/3] rust: arch/um: Add support for CONFIG_RUST under x86_64 UML To: David Gow Cc: Miguel Ojeda , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Richard Weinberger , Anton Ivanov , Johannes Berg , Thomas Gleixner , Ingo Molnar , Nathan Chancellor , Nick Desaulniers , rust-for-linux@vger.kernel.org, linux-um@lists.infradead.org, llvm@lists.linux.dev, linux-doc@vger.kernel.org, kunit-dev@googlegroups.com, x86@kernel.org, linux-kernel@vger.kernel.org, Wedson Almeida Filho , Gary Guo , Brendan Higgins , Daniel Latypov , Jonathan Corbet Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 17 Dec 2022 at 05:48, David Gow wrote: > > CONFIG_RUST currently supports x86_64, but does not support it under > UML. With the previous patches applied, adding support is trivial: > add CONFIG_HAVE_RUST to UML if X86_64 is set. > > The scripts/generate_rust_target.rs file already checks for > CONFIG_X86_64, not CONFIG_X86, so is prepared for UML support. > > The Rust support does not currently support X86_32. > > Also, update the Rust architecture support documentation to not that > this is being maintained: I intend to look after this as best I can. > > Signed-off-by: David Gow > --- > Documentation/rust/arch-support.rst | 2 ++ > arch/um/Kconfig | 1 + > 2 files changed, 3 insertions(+) > > diff --git a/Documentation/rust/arch-support.rst b/Documentation/rust/arc= h-support.rst > index 6982b63775da..a526ca1c688b 100644 > --- a/Documentation/rust/arch-support.rst > +++ b/Documentation/rust/arch-support.rst > @@ -17,3 +17,5 @@ Architecture Level of support Constraints > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > ``x86`` Maintained ``x86_64`` only. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > +``um`` Maintained ``x86_64`` only. > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > diff --git a/arch/um/Kconfig b/arch/um/Kconfig > index ad4ff3b0e91e..4db186f019ae 100644 > --- a/arch/um/Kconfig > +++ b/arch/um/Kconfig > @@ -28,6 +28,7 @@ config UML > select TRACE_IRQFLAGS_SUPPORT > select TTY # Needed for line.c > select HAVE_ARCH_VMAP_STACK > + select HAVE_RUST if X86_64 > > config MMU > bool > -- > 2.39.0.314.g84b9a713c41-goog > Reviewed-by: Sergio Gonz=C3=A1lez Collado