From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.30.130 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793949311; b=LzBsoRpSU/N+iWq32GmSKrz279Oq5YSDScfmK0aDwcSphrKhk0pEm1G8f/NXJMWt0MbR xvoTe5LMtz8YTcM4xFyunVUWYfdg48Gtk1YJ7zYBmep5Zwhq7TvSuSoNUDmvnCCrd40r0 mAhtJ1K8M6j9wxPirfFCVEAT6PAUUJE+73Jwl+zudpBbA4mXp2nFI2ZDTBLQG42503+cP Vn9NldXxZGAEn7LhVGFQIKXn0UY46nJFzmhh28v9JSV+InXMqLWvHEiDPrxPjK/9MpVTh XGikqZkqQvQrvIVxw7zdkLlxmWq7y/xxT8xnDOCVOvUul2unbLL2LoM1QdYGPEXZm8A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793949311; h=DMARC-Filter:DKIM-Signature:X-Alimail-AntiSpam:Received:From:To:Cc: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=d6ydCQ+GA/r9O1lqv1CIkHCaiuKsabnmgnyXnw1pfuk=; b=wbs366nCJOoclwlxU35RiR2L2VCsxkYMqCk8rBMtd3fnflCNw81b1GtsFcrNA3jlMbHp m+hhJpOnfYmFMPVSzsh1RTKaXOT9kXhI4tbzDGKBtwXb5GL/BmIP/1Frs0TWdQwARXlV1 AnVmfoOrs0nOSNmBYAoLP5NCfn22oV8XokbTONI17tLFEMYh6F0Yg2cgX5MUq0gOi35Gt dyD+kjXcIAb1rOjNFAcYkFW3RhL71Mlk5Pd58sSseeux4B1ZMiUEFTu4BXGEAp9tlHrxM 6AyxB0D087ZbVmvCo8RgOKStoNxurgnBrARWQU/WtA6MHr9L1JZSbWGeIKsv4xwYyxw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=mD9uVWVk; arc=none smtp.remote-ip=115.124.30.130 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACD6D606A326; Fri, 6 Nov 2026 07:15:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ACD6D606A326 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=mD9uVWVk DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1793949306; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=d6ydCQ+GA/r9O1lqv1CIkHCaiuKsabnmgnyXnw1pfuk=; b=mD9uVWVkJsLNiO4/se3MP1sPfn2e/Yp5Jl0u5Hq5TQuBdMeXEQMlDudiUOLqlyUWOA37mAqw6Jg2hit4INsya/1IT6mn8O7k4tBiGO4xg97DLX8pdTPXQxymSa99Ve6jUWFKfs/g1xmue8H/SrnXe/9QpE3+2q1KMGcMdsBVOok= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037009110;MF=cp0613@linux.alibaba.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---0XEAtjNb_1793949305; Received: from DESKTOP-S9E58SO.localdomain(mailfrom:cp0613@linux.alibaba.com fp:SMTPD_---0XEAtjNb_1793949305 cluster:ay36) by smtp.aliyun-inc.com; Fri, 06 Nov 2026 15:15:06 +0800 From: Chen Pei To: pjw@kernel.org, palmer@dabbelt.com, alex@ghiti.fr, rppt@kernel.org, pasha.tatashin@soleen.com, pratyush@kernel.org, graf@amazon.com, shuah@kernel.org Cc: guoren@kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, kexec@lists.infradead.org Subject: [PATCH v3 3/4] selftests: kho: Add riscv support Date: Fri, 6 Nov 2026 15:14:58 +0800 Message-ID: <20261106071459.2003-4-cp0613@linux.alibaba.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261106071459.2003-1-cp0613@linux.alibaba.com> References: <20261106071459.2003-1-cp0613@linux.alibaba.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Describe the machine the KHO vmtest runner needs to boot riscv64, so the test stops being skipped on this architecture. Signed-off-by: Chen Pei --- Test: qemu-system-riscv64 (virt, -cpu max, TCG), in-tree runner "tools/testing/selftests/kho/vmtest.sh -t riscv64" (boots the Image and kexec'es into the same Image). KHO: found kexec handover data. test_kho: KHO restore succeeded ok 1 KHO succeeded # Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 tools/testing/selftests/kho/riscv.conf | 9 +++++++++ tools/testing/selftests/kho/vmtest.sh | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tools/testing/selftests/kho/riscv.conf diff --git a/tools/testing/selftests/kho/riscv.conf b/tools/testing/selftests/kho/riscv.conf new file mode 100644 index 000000000000..ec2a46cd45d5 --- /dev/null +++ b/tools/testing/selftests/kho/riscv.conf @@ -0,0 +1,9 @@ +QEMU_CMD="qemu-system-riscv64 -M virt -cpu max" +QEMU_KCONFIG=" +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_OF_PLATFORM=y +CONFIG_SPARSEMEM_MANUAL=y +" +KERNEL_IMAGE="Image" +KERNEL_CMDLINE="console=ttyS0" diff --git a/tools/testing/selftests/kho/vmtest.sh b/tools/testing/selftests/kho/vmtest.sh index 1e86ffcc3a79..56cac6ae3cf9 100755 --- a/tools/testing/selftests/kho/vmtest.sh +++ b/tools/testing/selftests/kho/vmtest.sh @@ -21,7 +21,7 @@ Options: -d) path to the kernel build directory -j) number of jobs for compilation, similar to -j in make -t) run test for target_arch, requires CROSS_COMPILE set - supported targets: aarch64, x86_64 + supported targets: aarch64, x86_64, riscv64 -h) display this help EOF } @@ -127,6 +127,7 @@ function target_to_arch() { case $target in aarch64) echo "arm64" ;; x86_64) echo "x86" ;; + riscv64) echo "riscv" ;; *) skip "architecture $target is not supported" esac } -- 2.50.1