From patchwork Tue Jan 31 04:35:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bobby Eshleman X-Patchwork-Id: 50588 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2555933wrn; Mon, 30 Jan 2023 20:39:28 -0800 (PST) X-Google-Smtp-Source: AK7set+D7XvSRPSMTwaE1Km13sOP17V9RKiDIt9B6TrqRIgCTIND2LLQ4ulzeWiFSF56Nk2Nznrf X-Received: by 2002:a17:906:a2d3:b0:88a:2e57:9813 with SMTP id by19-20020a170906a2d300b0088a2e579813mr1904865ejb.33.1675139968223; Mon, 30 Jan 2023 20:39:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675139968; cv=none; d=google.com; s=arc-20160816; b=Sf+p8KsnjdII+yXD1lUT7WboFgI86VkZ6AElXNgJg+xCp6Kx9UIIYIQQ/6jd1hYeZc lkySGJUSofwZGuiOM530XeX+UlI0WVXphq+e+nEZe3hwSbFabnr/hll+FB5BHHOHKRVZ D/IOrmmx332Vnzdt/z0pW79NNwBI7NIgt/dqi3sKnrCga83c1SSwKC78mPMLL0ua6bfW zMOLj21MJiHSUIGVyfVh2kknGLNGLLNdY5YOKUvIEwSX1dKbfzIokaX3eYDOM4dqF5Yv Kb9QorGfIL3kdzHZRTx7p/EmKbJW982es5TsHF5J/UbUd9BVOyZbRavIlGd8BY1RnEhq cYow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9YmT560oTftw19JZaSdqN79G8win6E1yvXJ4AismDYA=; b=uXl9YSBhIPmAhBnIeOLxt6D2NwwonCyeoG5O0EkKFujPQ/cMNrhTjeEO5cwPymaJeO ZUTsU/z5bt2VDRtSRYmvwwHz8NdAqeMA1mZhdb7M17AnqWo4HS2851GorOpduFKzt47j gRbnLbT11b/oYdqZJ8+KvYfgUglxfDcZshUIJl+ZF33M9+vxhr64H8l/8DtBl3BSW6Gf Z/olny6S2emGmcUNN5WjAmLuvBxXuWvVUidCW6uDXFfkzM8hr6jUj7rJLBzs1PRJ6JSv GibKLhTUAUhF/Va31Ocp9lyMusvtu1uv07w5keyBLpcw0avMB7t/CbDtGbObbO41IeST 9P5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=fp+7E2dh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v19-20020a17090610d300b0086f3e470d23si18531537ejv.723.2023.01.30.20.39.02; Mon, 30 Jan 2023 20:39:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=fp+7E2dh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230244AbjAaEgl (ORCPT + 99 others); Mon, 30 Jan 2023 23:36:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbjAaEgN (ORCPT ); Mon, 30 Jan 2023 23:36:13 -0500 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D83B39CDD for ; Mon, 30 Jan 2023 20:35:46 -0800 (PST) Received: by mail-qt1-x82d.google.com with SMTP id z9so12360169qtv.5 for ; Mon, 30 Jan 2023 20:35:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9YmT560oTftw19JZaSdqN79G8win6E1yvXJ4AismDYA=; b=fp+7E2dha4r9VCUXBWObySLYq0twxXrxh48Mf9108NaZCq1sgZ8EYxK6VLWxtguqha RZPLT9YxdCKjMH/GgjC/F9BPJnPI6dGV3zK6pPrRvu50o9zV/YlXb7T5ZF+GO5E2e5N3 9KF0VXSdqC3UIfAZGW2K0hmZKfv55IR3jRlsK71WkguiVBTO0RhzVqst5vezPM93+S5y j2HV/noeJj3G5rPnUrmxzXLCa877lUepPQj0KLQ2nwj6ra1a5Qa1VA5K/MkkD/BEifl8 PepRamh3hVU2kCeQ6vt730JFer0Sk8JuIJexTT7CG8uNGqYzSJ1OsEkiwVvyHW90kMcx dDZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9YmT560oTftw19JZaSdqN79G8win6E1yvXJ4AismDYA=; b=e8zu/+8WihuScnWJNtHQUC+iRntnGqxR1Oa0ZUTor+/vAh7siesK0jkX1mnE+s4ssj 8+LDCDzoEy793H9n8CWqRAS74SCaOOLqMGx4Ky/1sxLEdre7EyitsQ6CDoYzI54pgdKE MxLh55ux/+2bpriPvDy1Ib/nThOHta7Wtcb8DQX4S7aSAwxGaIikmOVEFwyZ4+2ESzDl KJKu2FUkLy6qrOphflXcqCb8QphwKClJ30Tv7ykz6t+3p3CZx/Rslkv/P5PuAjlI38et 8kFrMYnWp90jFv+RAei0KBU6h46ym1Yl9ra4KOaO6kvwvAmsoTPeWEb5DjoxnLkbCdfV KIhg== X-Gm-Message-State: AO0yUKXIHD6D5jeUsoUgrA71tyjVlM94SooMTlwwamHQ3IqD2U1e5BAa SefWBKBsRWCx0GQbfxHZ7gWatQ== X-Received: by 2002:a05:622a:1016:b0:3b8:248b:a035 with SMTP id d22-20020a05622a101600b003b8248ba035mr27029137qte.19.1675139746210; Mon, 30 Jan 2023 20:35:46 -0800 (PST) Received: from C02G8BMUMD6R.bytedance.net ([148.59.24.152]) by smtp.gmail.com with ESMTPSA id b13-20020ac801cd000000b003a6a19ee4f0sm9260682qtg.33.2023.01.30.20.35.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jan 2023 20:35:45 -0800 (PST) From: Bobby Eshleman To: Stefan Hajnoczi , Stefano Garzarella , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrii Nakryiko , Mykola Lysenko , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan Cc: Bobby Eshleman , Bobby Eshleman , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, jakub@cloudflare.com, hdanton@sina.com, cong.wang@bytedance.com Subject: [PATCH RFC net-next v2 2/3] selftests/bpf: add vsock to vmtest.sh Date: Mon, 30 Jan 2023 20:35:13 -0800 Message-Id: <20230118-support-vsock-sockmap-connectible-v2-2-58ffafde0965@bytedance.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118-support-vsock-sockmap-connectible-v2-0-58ffafde0965@bytedance.com> References: <20230118-support-vsock-sockmap-connectible-v2-0-58ffafde0965@bytedance.com> MIME-Version: 1.0 X-Mailer: b4 0.12.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756511567308294354?= X-GMAIL-MSGID: =?utf-8?q?1756511567308294354?= Add vsock loopback to the test kernel. This allows sockmap for vsock to be tested. Signed-off-by: Bobby Eshleman Acked-by: Stefano Garzarella --- tools/testing/selftests/bpf/config.aarch64 | 2 ++ tools/testing/selftests/bpf/config.s390x | 3 +++ tools/testing/selftests/bpf/config.x86_64 | 3 +++ 3 files changed, 8 insertions(+) diff --git a/tools/testing/selftests/bpf/config.aarch64 b/tools/testing/selftests/bpf/config.aarch64 index 1f0437644186..253821494884 100644 --- a/tools/testing/selftests/bpf/config.aarch64 +++ b/tools/testing/selftests/bpf/config.aarch64 @@ -176,6 +176,8 @@ CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y CONFIG_VIRTIO_MMIO=y CONFIG_VIRTIO_NET=y CONFIG_VIRTIO_PCI=y +CONFIG_VIRTIO_VSOCKETS_COMMON=y CONFIG_VLAN_8021Q=y CONFIG_VSOCKETS=y +CONFIG_VSOCKETS_LOOPBACK=y CONFIG_XFRM_USER=y diff --git a/tools/testing/selftests/bpf/config.s390x b/tools/testing/selftests/bpf/config.s390x index d49f6170e7bd..2ba92167be35 100644 --- a/tools/testing/selftests/bpf/config.s390x +++ b/tools/testing/selftests/bpf/config.s390x @@ -140,5 +140,8 @@ CONFIG_VIRTIO_BALLOON=y CONFIG_VIRTIO_BLK=y CONFIG_VIRTIO_NET=y CONFIG_VIRTIO_PCI=y +CONFIG_VIRTIO_VSOCKETS_COMMON=y CONFIG_VLAN_8021Q=y +CONFIG_VSOCKETS=y +CONFIG_VSOCKETS_LOOPBACK=y CONFIG_XFRM_USER=y diff --git a/tools/testing/selftests/bpf/config.x86_64 b/tools/testing/selftests/bpf/config.x86_64 index dd97d61d325c..b650b2e617b8 100644 --- a/tools/testing/selftests/bpf/config.x86_64 +++ b/tools/testing/selftests/bpf/config.x86_64 @@ -234,7 +234,10 @@ CONFIG_VIRTIO_BLK=y CONFIG_VIRTIO_CONSOLE=y CONFIG_VIRTIO_NET=y CONFIG_VIRTIO_PCI=y +CONFIG_VIRTIO_VSOCKETS_COMMON=y CONFIG_VLAN_8021Q=y +CONFIG_VSOCKETS=y +CONFIG_VSOCKETS_LOOPBACK=y CONFIG_X86_ACPI_CPUFREQ=y CONFIG_X86_CPUID=y CONFIG_X86_MSR=y