Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2678412rdb; Mon, 12 Feb 2024 12:37:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUR7wJvjkR95ndXYB64vHIsm0fOGES7LEaFw67PTnU6SukXbkTJycRhUpwbMYvcWih4XHjmDrFb45Yz9e2XYTkEVlkA4o3nP3OWUIDCTA== X-Google-Smtp-Source: AGHT+IF7XyUuimJVa6jJBqkFRimIBSFt7xWYykYo0tdfMnMYSlUGMmO8ZchpkE9eTY10WwqA6fPy X-Received: by 2002:a05:6214:5508:b0:68c:e3a8:aff2 with SMTP id mb8-20020a056214550800b0068ce3a8aff2mr1124107qvb.14.1707770226711; Mon, 12 Feb 2024 12:37:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707770226; cv=pass; d=google.com; s=arc-20160816; b=oOHL9QEFnQODVycS6UT0HYEYO7J9DTTv1BMbvNfmqGtTYcdD3U4Srwyhfta9hKnjEM W5K8fNMqKHIidH++NHfKn/d1q4mMcWAXWnYos7USwhB2SSfoFaGNoR1aQVv5LwJg1Z7h pV8dX5/UHgQw00PiDh7klbRVrrt5oDr+gPTA+JXRIgnXNNAOlQ8NLeSOlFRfbtVjmFiM Jpjb1NFvCYYEwyxSui/rCHVSRfNCVOImbR6AWI41vp2nGixsm74jtFuju+eEplwqIuIz RmioUxqVd1xtXTRQJq38XzwQxOdj8h7+W2pScs8IUWwq4hqOR9ihW6ozp3VBkLoywkC2 DjQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=/Qq/MTNXhRSFGfhT1MpQL4wU8zE0C84XuaSbfhwx1Oc=; fh=+bBBrppN+csXDqCosQo/XChDmBxKrVDu6ZipTEjkXGU=; b=Y9h3M8+u+z9h9vM7BS4csEZgXx+4hr6tlQOWsRzQJuC4LiNdtkCHCWxIbZjsu+w0ur MIUACzot7IKzjSP58nHYA0JbFtsZ5KefTsdsOGTcJH8KDeKaGu1SK0dkCJu5eESRcYxb +L4+2X0UXHKrbmw8RfnxMbMnmfRrN/B+O5Y6QKQvBr/IBRxu1CCC8RzLgNeboKjvo62H Wl9Y6BOUFlM29fl0m6+LyZ6DO+e22wbc0bn2IUUh3FPIkzmL31WcV8of3ankw0H0YpvB w3Y7W6T1yV/8rucBA9UbV5o470clP8Xz/kOTOIWmUdhRRtJ0hUgcewv1EeOul/S3Jdb1 rrvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=NjoZL6iY; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-62342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCUhQEFVanb1xkWOnxN/3hlnm/flwXYILVX+cDol8NZy0Rimk03eS6wUPcu17+d0m8SB/5cw/QMQTHlJjUoiuC8Q2Xs+2e7GouVWYWj/Zg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gi4-20020a056214248400b0068ceaf50961si1257895qvb.208.2024.02.12.12.37.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 12:37:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=NjoZL6iY; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-62342-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 777781C21159 for ; Mon, 12 Feb 2024 20:37:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6778A41C93; Mon, 12 Feb 2024 20:36:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="NjoZL6iY" Received: from mail-vs1-f44.google.com (mail-vs1-f44.google.com [209.85.217.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 246D01EB21 for ; Mon, 12 Feb 2024 20:36:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707770216; cv=none; b=Vdn6+bCr9Vyipd3HEAUb52j7W7Z9u+qM5zgyiKNEdmNundhS4+7MfrN2hsfM7IWdKVwf2c7C375Qa5rgCvdFfYEO8HnAREkdsLAH7caFW7ucpk44/dvAF0nm2EFI5npWhbpGt+IEijOs5ufWp2sv1Bswzdgm9mL0/UH9tobwMSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707770216; c=relaxed/simple; bh=/Qq/MTNXhRSFGfhT1MpQL4wU8zE0C84XuaSbfhwx1Oc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=NdSQ84DftKvLcdeumj5d3Vj29pDzijTpNNflRD/cGUDmsvGd+istDMOiIKO2NNwTTtQPxd9VNHefeHZ90EeYVQtEzebP46orbMhm+YumjVOxoe+X5As6EF7VLk1dQwfLLspAP1L8rYSdXjR/y4nGdVj9fR4x6DW111owJ4GVa9U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=NjoZL6iY; arc=none smtp.client-ip=209.85.217.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-vs1-f44.google.com with SMTP id ada2fe7eead31-46d2085eeebso1692801137.1 for ; Mon, 12 Feb 2024 12:36:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707770214; x=1708375014; darn=vger.kernel.org; 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=/Qq/MTNXhRSFGfhT1MpQL4wU8zE0C84XuaSbfhwx1Oc=; b=NjoZL6iYPpuIavLjRBXRakQeIQfNcFALN0lIhvqVa/PtYSrsWMHhX5ZVPtdo6eAnyM uen9fiFZSvvCnBI21ISLhGYYlFR5ed9JE0rvdOgVL5w0hpibwru1INFBjd/rei1GQp/f grAhkOm25LxpHFELEk8QV5JFPuu3AokXm8WP7nSIInq0OAxIyCJRymaI0y7wWKmoSGnU +ck94XCC5Q/10SY5Egc4aY5cAxLkckFKDqld/fzy3uTe474PombiL+Qes9BgRnzbboHc pmwSjA/hRShCE98aC+ZBeu2H5BSlLJOf8jYt8XU1QhE5iHIPcJj6jzHmC0jqTrGhMqY0 Cqhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707770214; x=1708375014; 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=/Qq/MTNXhRSFGfhT1MpQL4wU8zE0C84XuaSbfhwx1Oc=; b=oCkv716DMgCbvNlVHTQFr+zACPkBDMrKUC8FvfqEY9uxxCkNG1z5YPlRxLIKNOJnzC ZwmNztEj4RaH+JN0Tl+ODrb/b9pgB2AjSVcSPIOCLHIz6rI2zqtIzL5iqFVEQjeTxz63 J+TxUODerm+tVeFMHWoTYvwWCf63ZERDZ/MgqDGi9K0w0Z+YMlKhxshkmBzE1wPazGv1 sUQdvOOymck4R9Cbi7SBJSwn+DZgH0m1bOXuVThyPRG43zfhezTh70hpWKCgGLcGxbG/ qgxfEigVsbz60nCW8FU/9MSPVUI2DxikybpQbGedXpdRM6vjfj74yPRBkOjTjxQpFdWF 00NQ== X-Forwarded-Encrypted: i=1; AJvYcCV3hnD2FjGL9mRH1qFgwwR7+jU5Ad/cXiZeLik/db2X7GPXOZz47vIE6yWhbl9LMq+YNmPelfLGM9+D9+RoWKhs33nCLVO9FtEgmmDB X-Gm-Message-State: AOJu0Yy29zH2WsppPbgPPSbaxaBaQgj66Bx7Vn2UNJpORiXR3udeBE4w KrxhzuytcEVHliBTl+exG05YDhcrEoC6bVKX0uZm+lTMJGYCs4aAIPo+tn+022xVyvSMJ9eV4eV 1vvRRMTsSHkJKBqueICkObmZ5u2wd6SKWKLvj X-Received: by 2002:a67:e947:0:b0:46e:cadc:f340 with SMTP id p7-20020a67e947000000b0046ecadcf340mr645454vso.7.1707770213832; Mon, 12 Feb 2024 12:36:53 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240117-swiftly-parasail-618d62972d6e@spud> <20240118-implode-delirium-eefdd86e170e@spud> <20240125-bucked-payroll-47f82077b262@wendy> <20240125-lazy-thrower-744aacc6632a@wendy> <20240126-eccentric-jaywalker-3560e2151a92@spud> <20240209-rage-keg-1b2982cd17d9@spud> In-Reply-To: From: Sami Tolvanen Date: Mon, 12 Feb 2024 12:36:15 -0800 Message-ID: Subject: Re: [PATCH v1 0/2] RISC-V: enable rust To: Ramon de C Valle Cc: Trevor Gross , Conor Dooley , Miguel Ojeda , Conor Dooley , linux-riscv@lists.infradead.org, Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Nathan Chancellor , Nick Desaulniers , Tom Rix , rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Matthew Maurer Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 12, 2024 at 11:04=E2=80=AFAM Ramon de C Valle wrote: > > Sorry for the late reply. Sami might be the best person to answer > this, but KCFI (not CFI) tests are lowered by passes that are > architecture specific (see https://reviews.llvm.org/D119296), so we'd > need to add support for RISC-V. There is no additional work required > in the Rust compiler besides enabling it for the new target. LLVM 17 added KCFI support for RISC-V. Sounds like it's just a question of whether rustc uses a new enough version of LLVM then? Sami