Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD503C636CC for ; Mon, 20 Feb 2023 14:34:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232139AbjBTOev (ORCPT ); Mon, 20 Feb 2023 09:34:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232177AbjBTOer (ORCPT ); Mon, 20 Feb 2023 09:34:47 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 898191EFCD; Mon, 20 Feb 2023 06:34:44 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 415F9B80D44; Mon, 20 Feb 2023 14:34:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82F6DC433EF; Mon, 20 Feb 2023 14:34:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676903682; bh=Q7xwmxAFcgiZe5wxX+YHvnpG14ZgiYhdN894N7fOwzE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=uVVEmlRRh5fcR0sE9YzM1KrFuZ6AaIZSSfoxCIWkgcWQzAmX4FhRVODb8lDI59v46 dUQKhXFssYXhNzGkyXQFVNk2bQgO2hnvKrGlwcU1rIY2wAVLQHMCF8cc/gm+KNUpii 7n+qghnJKHpwPPjGxNJ5VNZGdFdp5g55FcDSoxbvLm0IUsRThQQpRDR8c0qoWivCu/ mdh6gf8w2dACAnIRHpGqZvJSIe++bZ4aTWsmXOgkub4XbowfwSfwc3gkmtqQQ5mjSL XyeUSgs+2k025BHAPcGnLW8ifsNrGKyDzdp+CWnzlRp5bJuQaKjk9PWJxmA/6Aal3n MF8YZyaErpTcg== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Pu Lehui , bpf@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Pu Lehui , Pu Lehui Subject: Re: [PATCH bpf-next v2] riscv, bpf: Add kfunc support for RV64 In-Reply-To: <20230220083203.2988238-1-pulehui@huaweicloud.com> References: <20230220083203.2988238-1-pulehui@huaweicloud.com> Date: Mon, 20 Feb 2023 15:34:39 +0100 Message-ID: <874jrg76dc.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pu Lehui writes: > From: Pu Lehui > > As another important missing piece of RV64 JIT, kfunc allow bpf programs > call kernel functions. For now, RV64 is sufficient to enable it. Thanks Lehui! Maybe we can reword/massage the commit message a bit? What do you think about something like: "Now that the BPF trampoline is supported by RISC-V, it is possible to use BPF programs with kfunc calls. Note that the trampoline functionality is only supported by RV64. Add bpf_jit_supports_kfunc_call() to the 64-bit JIT." Bj=C3=B6rn