From patchwork Tue Feb 28 19:04:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bobby Eshleman X-Patchwork-Id: 62588 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3204056wrd; Tue, 28 Feb 2023 11:16:53 -0800 (PST) X-Google-Smtp-Source: AK7set+NwXYLhyxdrkf+Npo4C4IvAQo260xE6C38pepMZBxHWziFx+vKgs6xvAdlBy8avugfGk1M X-Received: by 2002:a17:902:9a01:b0:19c:b7da:a880 with SMTP id v1-20020a1709029a0100b0019cb7daa880mr3241075plp.11.1677611813449; Tue, 28 Feb 2023 11:16:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677611813; cv=none; d=google.com; s=arc-20160816; b=UGMGKT65Zgihu6UZ7dWrq9SdOC0AeIYlvliOC78VV4cLp6eApXPTMzfPD/ZO+nbUz+ X2rNfCfmgkggKK1YuXq4MZqDW4Jolgs9n010Vq122py5WHALMb8wEXup+1NosBMOxNRh 0iyUXXCCuMEKt237Uh3TbN0dbeTzbwLm+7x/pHyK+l/lvV40dKw/ApxdYE3sk2vfFAPM yYZXPqC04QCU2hxVlEBW/UL1MHZtU/pcXG2Sw+wRSBg2Iv12W/KcVpIaS+9UkmlwmINS H9r6VZR4Vhoo7IVOqK22Nd8beXp4Fm3CpJ2bJMnncQV0YVs9dLE7s78KW5n2X5utCA50 eauA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=C2LCecjy7A9+918lE3DRW32Ryv30Y7vZZQapOsMzhmY=; b=Y6Om/nJcxOsxJjf/+jQX5NsUujNQvNLkZti+jAXu5iEPWNixVYumO/qfsu74zIn3uv i6FZHHjz2mxh7r5r/B9QzTysKg2X+baHGFLSExXMs6xtPrKFTdfkDgXgn33X23hDxn7X 7Bzoii3dMicJTo9G27G1QFw5aaCM/mYJ2/U8ZRjmX7A/LGrpJ0McIDazqulf9JhQtRzd INbeUCurOeMIJ069Nh+LqC9THL40hYdCR83CE2dufhdxBW3IB9OHv7DB6Mr7nVP/PsYd 5dBpD28E1gZF0F3XGDSuM1yBE1o8VKnHob5fDUk/FdbKaPfqd+tVk4ryfRqD+tZFSd2g EnnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=iNMKaikO; 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=pass (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 29-20020a63125d000000b00502d5ee5d98si6942658pgs.86.2023.02.28.11.16.30; Tue, 28 Feb 2023 11:16:53 -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 header.s=google header.b=iNMKaikO; 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=pass (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229697AbjB1THD (ORCPT + 99 others); Tue, 28 Feb 2023 14:07:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229922AbjB1TGr (ORCPT ); Tue, 28 Feb 2023 14:06:47 -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 DC22430B3D for ; Tue, 28 Feb 2023 11:06:14 -0800 (PST) Received: by mail-qt1-x82d.google.com with SMTP id h19so11733764qtk.7 for ; Tue, 28 Feb 2023 11:06:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1677611174; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=C2LCecjy7A9+918lE3DRW32Ryv30Y7vZZQapOsMzhmY=; b=iNMKaikOUPeKg+b5uigJdEHzTAq3tnb0YbZ1a8yI0QniovFtY1IGU0K8tuz7Y0QLxn 3r2K0T0pQPtdAWv+O8cdnvdfsQG3ynp+apctgWUW/517RL1QXYl1tknayLouIZ4xPG4O /Ajb24M0DzZIB+MSntw/oit4jW1gGuPYj+/7guz6K19na7gWIBCzdP/zZdu/AeyUpJmO 7J2AHRcjV69SQhV8LxEonN8/ORn3l+7+YTd/ugFTMR7ay6++TY+c+La3v3OjWHuiYxRC fdKdg9aA86lOnkA2F6cEcySwEY92EZqGVf/2g2tnYlCkyIYYHC3t3+n1k8KLxotNj9I9 dGhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677611174; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=C2LCecjy7A9+918lE3DRW32Ryv30Y7vZZQapOsMzhmY=; b=u4AzyT2WvLcSraWAMWFhFWuMRoxNZU5rDkGeYsHFAP0vcMEA7eyQRDKepq7hGIFlVY iJHnK8kekGb0UR5gkmJKA/czlSX4Ur8NVsFvqFfbnsnfeF4dOU9bfODk5gXUeGHvsEA9 4kmpDNwEjiHF4gyTg3aKrIoV3/mCSyTuYNXh2aP5apGJY3DffdQkTGusLQ08IKVxnO8n Mj9DObLj0EbtJHhkqMXbkctL31Qb22qI2EnHP3m3P84rgJ6Ebtuo4WRY2CvbdqrmY+LW CpfEx9bsPRxNgn/xUF735aXF/ZK8VuuLlwMIBKTwfHbCmxfJTvwvitN0uwyLRP7lGCOG NR8w== X-Gm-Message-State: AO0yUKUxPrc4PfymTIW4EYZdaabs8XpRidqaaXQydVoxOqRh7Mr1EmHw xfTuPeRotbmnzpJLwkgubjvrsQ== X-Received: by 2002:ac8:5cc1:0:b0:3bf:e034:5f5e with SMTP id s1-20020ac85cc1000000b003bfe0345f5emr6422871qta.52.1677611173702; Tue, 28 Feb 2023 11:06:13 -0800 (PST) Received: from n217-072-012.byted.org ([130.44.212.123]) by smtp.gmail.com with ESMTPSA id p13-20020a05620a15ed00b006fed58fc1a3sm7242810qkm.119.2023.02.28.11.06.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 11:06:13 -0800 (PST) From: Bobby Eshleman Date: Tue, 28 Feb 2023 19:04:35 +0000 Subject: [PATCH net-next v3 2/3] selftests/bpf: add vsock to vmtest.sh MIME-Version: 1.0 Message-Id: <20230227-vsock-sockmap-upstream-v3-2-7e7f4ce623ee@bytedance.com> References: <20230227-vsock-sockmap-upstream-v3-0-7e7f4ce623ee@bytedance.com> In-Reply-To: <20230227-vsock-sockmap-upstream-v3-0-7e7f4ce623ee@bytedance.com> To: Stefan Hajnoczi , Stefano Garzarella , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan Cc: 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, Cong Wang , Bobby Eshleman X-Mailer: b4 0.12.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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?1759103484580578150?= X-GMAIL-MSGID: =?utf-8?q?1759103484580578150?= 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