[Bpf] ISA: BPF_CALL | BPF_X
dthaler1968@googlemail.com Tue, 30 January 2024 17:27 UTC
Return-Path: <dthaler1968@googlemail.com>
X-Original-To: bpf@ietfa.amsl.com
Delivered-To: bpf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 33916C14CEFD for <bpf@ietfa.amsl.com>; Tue, 30 Jan 2024 09:27:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.356
X-Spam-Level:
X-Spam-Status: No, score=-1.356 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, SUBJ_ALL_CAPS=0.5, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=googlemail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4lhsul4BfM6I for <bpf@ietfa.amsl.com>; Tue, 30 Jan 2024 09:27:39 -0800 (PST)
Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9A0D0C14F5E0 for <bpf@ietf.org>; Tue, 30 Jan 2024 09:27:39 -0800 (PST)
Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-5ce07cf1e5dso2014618a12.2 for <bpf@ietf.org>; Tue, 30 Jan 2024 09:27:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1706635659; x=1707240459; darn=ietf.org; h=thread-index:content-language:content-transfer-encoding :mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=9F7EALf2gYWxPbKNSGKMU2hL0Yhx5L3Q6w99eWQcjro=; b=L3XdLvdqTtOKuW0rHXYoCuDKivUzUTpXnFDAFS0OSputIYoMsbQeCH8c3tSF78mvDq GlWU03EhcFfKeEQ7Q+x2yL5qjmZcz+acGK7fCEC8IjNkA7/Olnv1L7ZP2pTfJV2f/vQ7 1NJmvvT1I5S2HjRKGV1NmSUnC1WUp5V1sac1rCb069V/zWeD8PPVjrE0TcxYZM4ouy3D z2Lv0PHj4mtXVLhnRQmuJ5Nn+aqgv2+qpFizz3nNADrAEYGT+PtexGiw3lVGfdeqXv0i ZcUe4phiuU6Wn+PDDD+tCMzQpDkUZNIUEMSY14U8jU3wDJalEgDIjhUDu/S+y4Zy6u5c fQ8A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706635659; x=1707240459; h=thread-index:content-language:content-transfer-encoding :mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9F7EALf2gYWxPbKNSGKMU2hL0Yhx5L3Q6w99eWQcjro=; b=ok0PW5HqNimxUOW3AmqJaQQqCcXWF9CekyViJrk4YD/nmtKY35tEmYbLrq+Y4oJYRn zRlK8+pGkKVg2KyOzhFALG/CCFErdepzs2YOOpS44DbX2xbrLxxVNWMo7yEm/13be58d XWANRqmK6IeyN9fGyXyG3sTktyFDXgHxX3Rcrs2/RigRZWO9fwvBE3ZKerPRN+yo9DtV foWPunBxThjbUdPsnX4Ntwz+Yy2O2MTdckHURmNgZ6Mj2xvCBGoZ6uw8PcldQSbYCDtM IwQs2tgVISKBXvS2URL3isbhGbFDEsGEt8dRGSTNVA89EWNsKZtjuWKdZV5YwOF8RBHD b0rw==
X-Gm-Message-State: AOJu0Yxb61KiqUCU/XIR9gMTPyZ64/P/av++mgoEI4M2BasDLxMz+aZj GisP0q86bOZoSK/n2unTYtfU9/sGE+IScHZutiBMI9oX76WuvLbq/lHsUngciXU=
X-Google-Smtp-Source: AGHT+IG4EGrzvcMtmwAXP1ze5GvGEX5ZCEel40w6VH2UXLOSslITdPqgztEQyjpSKZWn2yDxkoU9GQ==
X-Received: by 2002:a05:6a20:d488:b0:19c:9d37:ec59 with SMTP id im8-20020a056a20d48800b0019c9d37ec59mr5955721pzb.28.1706635658825; Tue, 30 Jan 2024 09:27:38 -0800 (PST)
Received: from ArmidaleLaptop (c-67-170-74-237.hsd1.wa.comcast.net. [67.170.74.237]) by smtp.gmail.com with ESMTPSA id m1-20020a62f201000000b006ddc03c425bsm8004664pfh.180.2024.01.30.09.27.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2024 09:27:38 -0800 (PST)
From: dthaler1968@googlemail.com
X-Google-Original-From: <dthaler1968@gmail.com>
To: 'bpf' <bpf@vger.kernel.org>, bpf@ietf.org
Date: Tue, 30 Jan 2024 09:27:36 -0800
Message-ID: <076001da53a1$9ebfa210$dc3ee630$@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Content-Language: en-us
Thread-Index: AdpTn/i/+Jdzpl/jQ0iLyOHFFXfaaQ==
Archived-At: <https://mailarchive.ietf.org/arch/msg/bpf/l5tNEgL-Wo7qSEuaGssOl5VChKk>
Subject: [Bpf] ISA: BPF_CALL | BPF_X
X-BeenThere: bpf@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Discussion of BPF/eBPF standardization efforts within the IETF <bpf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/bpf>, <mailto:bpf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/bpf/>
List-Post: <mailto:bpf@ietf.org>
List-Help: <mailto:bpf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/bpf>, <mailto:bpf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Jan 2024 17:27:43 -0000
clang generates BPF code with opcode 0x8d (BPF_CALL | BPF_X, which it calls "callx"), when compiling with -O0 or -O1. Of course -O2 is recommended, but if anyone later defines opcode 0x8d for anything other than what clang means by it, it could cause problems. On the BPF_MSH thread at https://mailarchive.ietf.org/arch/msg/bpf/ogmS9qFhdBCxC4VrOWL7nzjSiXU/ Alexei wrote regarding BPF_ABS and BPF_IND: > DW never existed in classic bpf, so abs/ind never had DW flavor. > If some assembler/compiler decided to "support" them it's on them. > The standard must not list such things as deprecated. They never existed. Technically BPF_CALL | BPF_X never existed either, so can be omitted from the IANA registry. But given the widespread deployment of clang's use, and the WG charter statement: > The BPF working group is initially tasked with documenting the existing > state of the BPF ecosystem I could see a potential argument to list it as reserved or something. Today, the document doesn't reserve it, so it's open for future use for any purpose. I just wanted to verify that the WG is ok with not listing it in the IANA registry, given the above information. Dave
- [Bpf] ISA: BPF_CALL | BPF_X dthaler1968
- Re: [Bpf] ISA: BPF_CALL | BPF_X Jose E. Marchesi
- Re: [Bpf] ISA: BPF_CALL | BPF_X Alexei Starovoitov
- Re: [Bpf] ISA: BPF_CALL | BPF_X dthaler1968
- Re: [Bpf] ISA: BPF_CALL | BPF_X Alexei Starovoitov
- Re: [Bpf] ISA: BPF_CALL | BPF_X dthaler1968