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=-4.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 9D48CC169C4 for ; Sun, 3 Feb 2019 17:08:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7011F2083B for ; Sun, 3 Feb 2019 17:08:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726717AbfBCRI2 convert rfc822-to-8bit (ORCPT ); Sun, 3 Feb 2019 12:08:28 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48678 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725814AbfBCRI2 (ORCPT ); Sun, 3 Feb 2019 12:08:28 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8610D356D5; Sun, 3 Feb 2019 17:08:28 +0000 (UTC) Received: from localhost (ovpn-112-14.rdu2.redhat.com [10.10.112.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id 055D060C7F; Sun, 3 Feb 2019 17:08:25 +0000 (UTC) Date: Sun, 03 Feb 2019 09:08:24 -0800 (PST) Message-Id: <20190203.090824.136686144218791788.davem@redhat.com> To: bjorn.topel@gmail.com Cc: linux-riscv@lists.infradead.org, daniel@iogearbox.net, ast@kernel.org, netdev@vger.kernel.org, palmer@sifive.com, hch@infradead.org Subject: Re: [PATCH bpf-next 1/3] bpf, riscv: add BPF JIT for RV64G From: David Miller In-Reply-To: <20190203115132.8766-2-bjorn.topel@gmail.com> References: <20190203115132.8766-1-bjorn.topel@gmail.com> <20190203115132.8766-2-bjorn.topel@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Sun, 03 Feb 2019 17:08:28 +0000 (UTC) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: bjorn.topel@gmail.com Date: Sun, 3 Feb 2019 12:51:29 +0100 > From: Björn Töpel > > This commit adds BPF JIT for RV64G. > > The JIT is a two-pass JIT, and has a dynamic prolog/epilogue (similar > to the MIPS64 BPF JIT) instead of static ones (e.g. x86_64). > > At the moment the RISC-V Linux port does not support HAVE_KPROBES, > which means that CONFIG_BPF_EVENTS is not supported. Thus, no tests > involving BPF_PROG_TYPE_TRACEPOINT passes. > > Further, the implementation does not support "far branching" (>4KiB). > > The implementation passes all the test_bpf.ko tests: > test_bpf: Summary: 378 PASSED, 0 FAILED, [366/366 JIT'ed] > > All the tail_call tests in the selftest/bpf/test_verifier program > passes. > > All tests where done on QEMU (QEMU emulator version 3.1.50 > (v3.1.0-688-g8ae951fbc106)). > > Signed-off-by: Björn Töpel Acked-by: David S. Miller