Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3029187ybv; Mon, 24 Feb 2020 16:42:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwVlpkuHyhswHR3/7IAeFJixB9yKUOBUJwYqjfk+qmvmVYsNboksyzQ8rE2NkuTU0NYKWZN X-Received: by 2002:aca:3f54:: with SMTP id m81mr1369761oia.73.1582591357930; Mon, 24 Feb 2020 16:42:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582591357; cv=none; d=google.com; s=arc-20160816; b=kIdUj+8KnVfVlLTB0XiXt2Sz31DIi45bv/VNvn3fvgVGtj3SSS8vz3uBEU60hfyJMP ObC0YIUV9aI6SETdNAVKSDHbqByZhFmxbfMStfK3cqyHZImpFqn4Fl11RWbQY0lX1XL8 zIoHubOT9+FM29KAAsBKOQ22G6g9fiPWnytX/LufZoXKlx5QCcUsfOiLX4cHEhwGBZEI Jbq5v9UqUJuAfZBrEBODC3itUmBmikxymwc1Bso7Qdu8mGow35mvMR/FkOsVUHbfGvdF MxzEV3sMgc/BQhkzq+zb1vocxlzgFVCjqIp9FPySjR70LNpjhJT9sm7xSp3jiurBBxZF E3yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=lA69AZrelbjB6ZozmKLqS29rj9UvPNFt448gKkt1TTU=; b=jHVn3JJh6F6Odap0lc14nLRK5yN0ilTFk/FmdeQS1QOcn2S7jg/5VcMURgszKeByFL a36D3+I9GhUeP5hRKzdGcIjVXwWkPDaYFmC3aa8+fw3dGlMVtCn9F/0scVRmwIYtfVOQ S8KttzBuIPUtiwoTEuAwTJitYL3+iC8Mk96d3Tae3Rbin+olbbDSFw709GLgn8LcO4fF vZM4NGMpBIgp2UmKD2gYvu4O/zFufH4eyNcZ8UYvLmDyVMnM/WUYctRlCtYz1IR9Uont UldJjYWHQtYlxCAozjFN+9OuV4lfdqLsSdZOmwcNFSlXGL7bmOLN2tYEPfVtjQjmLgUl Mhig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eWN2NQqF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l11si6747725oth.286.2020.02.24.16.42.24; Mon, 24 Feb 2020 16:42:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eWN2NQqF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728515AbgBYAmU (ORCPT + 99 others); Mon, 24 Feb 2020 19:42:20 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:35015 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728011AbgBYAmU (ORCPT ); Mon, 24 Feb 2020 19:42:20 -0500 Received: by mail-lj1-f195.google.com with SMTP id q8so12130762ljb.2; Mon, 24 Feb 2020 16:42:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lA69AZrelbjB6ZozmKLqS29rj9UvPNFt448gKkt1TTU=; b=eWN2NQqF8H9E8iqjqcRhAq8mfdZexJPS1qljBBJW/NanjLjXH13l3200u1FuzAjoyL VBbxFpMlaktno1iR8LaitoQ5SMoL8z1IKpmZGUNxFtO0xooZbzNro0XQ+pewMzZ3fpXq l45crp+4x0h8MHSrpEgwmtWS7DsYswQ1C5oj7YA5WT+4TOpZrcytr2Qb6H50XyWcwHeC rxejTHWxkmDV8kWcUMkX4lmaxyoBAk0cpIAEFYbwK19zbo3DovYMTVmm1ieixbmP1elf SB1pcrX2hHVCktYdG39FwrFlH+X5BFN6nTKBnnhzs1yYtyR+LCIDvCtPMavkR7G2URJf TQlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lA69AZrelbjB6ZozmKLqS29rj9UvPNFt448gKkt1TTU=; b=unEEUJeeIEljnDl7PYK+gZONTQ38u1Xd7ATJcjiyhGOBMqtFKodiVYT0lEH1J6jz06 UcU0KCPGojC3EYRW5tE4GrZez8dfRLEm0h3CN8eFg4YReUNz8A3Smq7mkfq/oqbFXdZ5 PUaTYjrSBFV+TmxgmVUvwnB/ZLFFp301/GcHjMBVFCw2bFncdBA2gDMERoqVa2puGFaS Z6pIJH7/OljK42vS7R16JUIO3iU0Z/js/b2Y92FTMIaOGVLkqDaQDxEw6pF+nLIrDzQm U5qjuH14Vun8IKr4HQHFNiIYLZmALUFWAap3Tw0mh2OSC3fiYDOldccrjfe9lyvyYpWu jDcg== X-Gm-Message-State: APjAAAWUVqbjqXnkxSyEnaZRn1VtAojJmyVq68wLm1oBN14it2o4NuJf 3Ei6FTKPvgx1M8m45Q7ukAXDeoK5EoKdZa0sz5g= X-Received: by 2002:a2e:a404:: with SMTP id p4mr32991570ljn.234.1582591336526; Mon, 24 Feb 2020 16:42:16 -0800 (PST) MIME-Version: 1.0 References: <20200220041608.30289-1-lukenels@cs.washington.edu> In-Reply-To: <20200220041608.30289-1-lukenels@cs.washington.edu> From: Alexei Starovoitov Date: Mon, 24 Feb 2020 16:42:05 -0800 Message-ID: Subject: Re: [PATCH v3 bpf-next] RV32G eBPF JIT To: Luke Nelson Cc: bpf , Jiong Wang , Xi Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , linux-riscv@lists.infradead.org, LKML , Network Development Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 19, 2020 at 8:20 PM Luke Nelson wrote: > > This is an eBPF JIT for RV32G, adapted from the JIT for RV64G and > the 32-bit ARM JIT. ... > v2 -> v3: > * Added support for far jumps / branches similar to RV64 JIT. > * Added support for tail calls. > * Cleaned up code with more optimizations and comments. > * Removed special zero-extension instruction from BPF_ALU64 > case, pointed out by Jiong Wang. > > v1 -> v2: > * Added support for far conditional branches. > * Added the zero-extension optimization pointed out by Jiong Wang. > * Added more optimizations for operations with an immediate operand. > > Cc: Jiong Wang > Co-developed-by: Xi Wang > Signed-off-by: Xi Wang > Signed-off-by: Luke Nelson Bjorn, please review.