From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1CC8D1F91E3; Sat, 12 Sep 2026 16:43:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789231395; cv=none; b=lC/uHlEjymSXkrMRz8211wToDme4SoBYqFsAwbOHC0nzyFvffKlYS2CWHnFL9ZJnxrib2becTBF0mx1Aw5Bf9QVZUJ+4pXZXnuTyWm7Fk9tQY90oARlLy0YJ8lFinGgxfUd10iVh0jCtH857L0EZ9pv8vb23TfYbeb38zMubth0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789231395; c=relaxed/simple; bh=1IcG4kejXtTLbPVizF7Us+ObjRjbtLMdkDlxYuaGBvU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jcAWjzYmuLf6SGY7r4xXXmEwtVOhLlApusg74jZAgShFyEjjZWapJQ5w+en4uX/GrKvD8Dk4HUPRLZDAx8ZPsGnpyCTmVNFvqsSOa7DjlJaE6YuxJss2etvfzOcbNWKQS0lNRdu3ySKS68yqsc0goOLodCjcyyJgY4rAfTg9O0g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eWOyM6M/; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="eWOyM6M/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06E261F000FF; Sat, 12 Sep 2026 16:43:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789231394; bh=RulL8IuYqDABDJ/ix/0chZoEB/KW+ZWN6qjJxHTB5T0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=eWOyM6M/LBHihK73DlSdNyXkSDvRWILt14zOqUlnLDRdVC7w8TrSnJ8KCW5zNR7Dv PHR24unCPOe02TQKaBz9zbSs8Zf09hkWlFqQyhdYnbOA4yiM1TPsAMaaFF5TJGr3DK TaaDPTQPq3kPWShE+LDn4cte3zQEZOdFfPqteeEQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Pu Lehui , Alexei Starovoitov , Sasha Levin Subject: [PATCH 6.1 0990/1191] selftests/bpf: Add description for running vmtest on RV64 Date: Sat, 12 Sep 2026 09:01:58 +0200 Message-ID: <20260912065610.441195221@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065548.086904252@linuxfoundation.org> References: <20260912065548.086904252@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Pu Lehui [ Upstream commit 95b1c5d17832f61d0438cd5060a997bafaf75f2c ] Add description in tools/testing/selftests/bpf/README.rst for running vmtest on RV64. Signed-off-by: Pu Lehui Link: https://lore.kernel.org/r/20240905081401.1894789-11-pulehui@huaweicloud.com Signed-off-by: Alexei Starovoitov Stable-dep-of: 3a59f11e0f98 ("selftests/bpf: vmtest.sh: Preserve command quoting when running in the VM") Signed-off-by: Sasha Levin --- tools/testing/selftests/bpf/README.rst | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/tools/testing/selftests/bpf/README.rst b/tools/testing/selftests/bpf/README.rst index cb45c827f0b3a..00b92ef5806c5 100644 --- a/tools/testing/selftests/bpf/README.rst +++ b/tools/testing/selftests/bpf/README.rst @@ -44,6 +44,38 @@ In case of linker errors when running selftests, try using static linking: If you want to change pahole and llvm, you can change `PATH` environment variable in the beginning of script. +Running vmtest on RV64 +====================== +To speed up testing and avoid various dependency issues, it is recommended to +run vmtest in a Docker container. Before running vmtest, we need to prepare +Docker container and local rootfs image. The overall steps are as follows: + +1. Create Docker container as shown in link [0]. + +2. Use mkrootfs_debian.sh script [1] to build local rootfs image: + +.. code-block:: console + + $ sudo ./mkrootfs_debian.sh --arch riscv64 --distro noble + +3. Start Docker container [0] and run vmtest in the container: + +.. code-block:: console + + $ PLATFORM=riscv64 CROSS_COMPILE=riscv64-linux-gnu- \ + tools/testing/selftests/bpf/vmtest.sh \ + -l -- \ + ./test_progs -d \ + \"$(cat tools/testing/selftests/bpf/DENYLIST.riscv64 \ + | cut -d'#' -f1 \ + | sed -e 's/^[[:space:]]*//' \ + -e 's/[[:space:]]*$//' \ + | tr -s '\n' ',' \ + )\" + +Link: https://github.com/pulehui/riscv-bpf-vmtest.git [0] +Link: https://github.com/libbpf/ci/blob/main/rootfs/mkrootfs_debian.sh [1] + Additional information about selftest failures are documented here. -- 2.53.0