* [PATCH v3 1/4] riscv: Call early_ioremap_setup() before parsing the DTB
2026-11-06 7:14 [PATCH v3 0/4] riscv: Enable kexec handover and live update Chen Pei
@ 2026-11-06 7:14 ` Chen Pei
2026-11-08 15:24 ` Pasha Tatashin
2026-11-06 7:14 ` [PATCH v3 2/4] riscv: Add support for kexec handover (KHO) Chen Pei
` (2 subsequent siblings)
3 siblings, 1 reply; 13+ messages in thread
From: Chen Pei @ 2026-11-06 7:14 UTC (permalink / raw)
To: pjw, palmer, alex, rppt, pasha.tatashin, pratyush, graf, shuah
Cc: guoren, linux-riscv, linux-kernel, linux-mm, linux-kselftest,
kexec
parse_dtb() can reach early_memremap(), whose return value is composed
from the slot table that early_ioremap_setup() fills in - and on RISC-V
that setup ran after the scan, so the mapping came back NULL. The DT
based kexec handover parsing is the first caller to hit this:
kho_populate() cannot map the handover FDT and the handover is dropped.
Run early_ioremap_setup() before parse_dtb(), as arm64 and x86 already
do.
Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
---
arch/riscv/kernel/setup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c
index d79f99b86033..45e2ef9d32fa 100644
--- a/arch/riscv/kernel/setup.c
+++ b/arch/riscv/kernel/setup.c
@@ -308,12 +308,12 @@ extern void __init init_rt_signal_env(void);
void __init setup_arch(char **cmdline_p)
{
+ early_ioremap_setup();
parse_dtb();
setup_initial_init_mm(_stext, _etext, _edata, _end);
*cmdline_p = boot_command_line;
- early_ioremap_setup();
sbi_init();
jump_label_init();
parse_early_param();
--
2.50.1
^ permalink raw reply related [flat|nested] 13+ messages in thread* Re: [PATCH v3 1/4] riscv: Call early_ioremap_setup() before parsing the DTB
2026-11-06 7:14 ` [PATCH v3 1/4] riscv: Call early_ioremap_setup() before parsing the DTB Chen Pei
@ 2026-11-08 15:24 ` Pasha Tatashin
0 siblings, 0 replies; 13+ messages in thread
From: Pasha Tatashin @ 2026-11-08 15:24 UTC (permalink / raw)
To: Chen Pei
Cc: pjw, palmer, alex, rppt, pasha.tatashin, pratyush, graf, shuah,
guoren, linux-riscv, linux-kernel, linux-mm, linux-kselftest,
kexec
On Fri, 06 Nov 2026 15:14:56 +0800, Chen Pei <cp0613@linux.alibaba.com> wrote:
> parse_dtb() can reach early_memremap(), whose return value is composed
> from the slot table that early_ioremap_setup() fills in - and on RISC-V
> that setup ran after the scan, so the mapping came back NULL. The DT
> based kexec handover parsing is the first caller to hit this:
> kho_populate() cannot map the handover FDT and the handover is dropped.
>
> Run early_ioremap_setup() before parse_dtb(), as arm64 and x86 already
> do.
>
> [...]
Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
--
Pasha
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v3 2/4] riscv: Add support for kexec handover (KHO)
2026-11-06 7:14 [PATCH v3 0/4] riscv: Enable kexec handover and live update Chen Pei
2026-11-06 7:14 ` [PATCH v3 1/4] riscv: Call early_ioremap_setup() before parsing the DTB Chen Pei
@ 2026-11-06 7:14 ` Chen Pei
2026-11-07 7:15 ` sashiko-bot
2026-11-08 15:24 ` Pasha Tatashin
2026-11-06 7:14 ` [PATCH v3 3/4] selftests: kho: Add riscv support Chen Pei
2026-11-06 7:14 ` [PATCH v3 4/4] selftests: liveupdate: " Chen Pei
3 siblings, 2 replies; 13+ messages in thread
From: Chen Pei @ 2026-11-06 7:14 UTC (permalink / raw)
To: pjw, palmer, alex, rppt, pasha.tatashin, pratyush, graf, shuah
Cc: guoren, linux-riscv, linux-kernel, linux-mm, linux-kselftest,
kexec
The generic handover paths are already in place on RISC-V: the outgoing
kernel publishes the handover FDT and the bootmem list in /chosen of the
DTB built by of_kexec_alloc_and_setup_fdt(), and the incoming kernel
picks both up while scanning that node. Only the architecture symbol is
missing.
Set it to 64BIT && MMU: ARCH_SUPPORTS_KEXEC_FILE is already 64BIT only,
and KEXEC_HANDOVER selects CMA, which depends on MMU.
Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
---
arch/riscv/Kconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index bde1f1885038..bffef6b903e1 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -1125,6 +1125,9 @@ config ARCH_SELECTS_KEXEC_FILE
config ARCH_SUPPORTS_KEXEC_PURGATORY
def_bool ARCH_SUPPORTS_KEXEC_FILE
+config ARCH_SUPPORTS_KEXEC_HANDOVER
+ def_bool 64BIT && MMU
+
config ARCH_SUPPORTS_CRASH_DUMP
def_bool y
--
2.50.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH v3 2/4] riscv: Add support for kexec handover (KHO)
2026-11-06 7:14 ` [PATCH v3 2/4] riscv: Add support for kexec handover (KHO) Chen Pei
@ 2026-11-07 7:15 ` sashiko-bot
2026-11-07 15:27 ` Chen Pei
2026-11-08 15:24 ` Pasha Tatashin
1 sibling, 1 reply; 13+ messages in thread
From: sashiko-bot @ 2026-11-07 7:15 UTC (permalink / raw)
To: Chen Pei, pjw, palmer, alex, rppt, pasha.tatashin, pratyush, graf,
shuah
Cc: guoren, linux-mm, kexec
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] riscv: kho: BUG_ON() in linear_mapping_pa_to_va() during
efi_init()
- [Medium] riscv: kho: kho_reserve_bootmem() fails when DRAM starts at
or above 4 GiB
--
commit 9359adbe095f746cadb4028ea618b75e0af09036
Author: Chen Pei <cp0613@linux.alibaba.com>
riscv: Add support for kexec handover (KHO)
This commit enables ARCH_SUPPORTS_KEXEC_HANDOVER on 64-bit RISC-V systems
with MMU support.
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index bde1f1885038f..bffef6b903e13 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -1125,6 +1125,9 @@ config ARCH_SELECTS_KEXEC_FILE
> config ARCH_SUPPORTS_KEXEC_PURGATORY
> def_bool ARCH_SUPPORTS_KEXEC_FILE
>
> +config ARCH_SUPPORTS_KEXEC_HANDOVER
> + def_bool 64BIT && MMU
> +
> config ARCH_SUPPORTS_CRASH_DUMP
> def_bool y
[Severity: High]
Does enabling KEXEC_HANDOVER here hit BUG_ON(!kernel_map.va_pa_offset) in
linear_mapping_pa_to_va() during early boot on UEFI systems with
CONFIG_DEBUG_VIRTUAL=y?
In setup_arch(), parse_dtb() populates kho_in.fdt_phys, and then
efi_init() runs before paging_init():
arch/riscv/kernel/setup.c:setup_arch() {
...
parse_dtb();
...
efi_init();
paging_init();
...
}
efi_init() -> reserve_regions() -> is_kho_boot() -> kho_get_fdt() calls
phys_to_virt(kho_in.fdt_phys), which translates to __va() ->
linear_mapping_pa_to_va(). On 64-bit RISC-V, kernel_map.va_pa_offset is
still 0 at that point because it is not initialized until paging_init() ->
setup_bootmem().
[Severity: Medium]
Can kho_reserve_bootmem() fail on 64-bit RISC-V systems where DRAM starts
at or above 4 GiB?
RISC-V does not define ARCH_LOW_ADDRESS_LIMIT, so it defaults to
0xffffffffUL in include/linux/memblock.h. When all DRAM starts at or
above 4 GiB, bootmem_size_update() sets bootmem_size_lowmem to 0, and
kho_reserve_bootmem() unconditionally calls memblock_phys_alloc_range()
below ARCH_LOW_ADDRESS_LIMIT:
kernel/liveupdate/kexec_handover.c:kho_reserve_bootmem() {
...
size = bootmem_size_lowmem;
addr = memblock_phys_alloc_range(size, BOOTMEM_ALIGNMENT_BYTES, 0,
ARCH_LOW_ADDRESS_LIMIT);
if (!addr) {
pr_err("Failed to reserve lowmem bootmem\n");
goto err_free_bootmem_desc;
}
...
}
Because no memory exists below 4 GiB, the allocation returns 0 and aborts
KHO initialization. Conversely, when all DRAM lies below 4 GiB,
bootmem_size_global is 0 and kho_reserve_bootmem() records a 0-byte entry
in kho_bootmem[], which causes kho_walk_bootmem() to build an inverted
struct resource with end = start - 1.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261106071459.2003-1-cp0613@linux.alibaba.com?part=2
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [PATCH v3 2/4] riscv: Add support for kexec handover (KHO)
2026-11-07 7:15 ` sashiko-bot
@ 2026-11-07 15:27 ` Chen Pei
0 siblings, 0 replies; 13+ messages in thread
From: Chen Pei @ 2026-11-07 15:27 UTC (permalink / raw)
To: sashiko-bot
Cc: alex, graf, guoren, kexec, linux-mm, palmer, pasha.tatashin, pjw,
pratyush, rppt, shuah
> [Severity: High]
> Does enabling KEXEC_HANDOVER here hit BUG_ON(!kernel_map.va_pa_offset) in
> linear_mapping_pa_to_va() during early boot on UEFI systems with
> CONFIG_DEBUG_VIRTUAL=y?
Greg Thelen has a fix for it [1].
> [Severity: Medium]
> Can kho_reserve_bootmem() fail on 64-bit RISC-V systems where DRAM starts
> at or above 4 GiB?
Mike Rapoport has a fix for it [2].
Both are generic KHO issues rather than riscv code, and both are already
being addressed upstream, so there is nothing for this series to carry.
[1] https://lore.kernel.org/all/20261023054518.3258350-1-gthelen@google.com/
[2] https://lore.kernel.org/kexec/20261104-kho-bootmem-sizing-v2-0-b0d1a834780f@kernel.org/
Best regards,
Chen
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v3 2/4] riscv: Add support for kexec handover (KHO)
2026-11-06 7:14 ` [PATCH v3 2/4] riscv: Add support for kexec handover (KHO) Chen Pei
2026-11-07 7:15 ` sashiko-bot
@ 2026-11-08 15:24 ` Pasha Tatashin
1 sibling, 0 replies; 13+ messages in thread
From: Pasha Tatashin @ 2026-11-08 15:24 UTC (permalink / raw)
To: Chen Pei
Cc: pjw, palmer, alex, rppt, pasha.tatashin, pratyush, graf, shuah,
guoren, linux-riscv, linux-kernel, linux-mm, linux-kselftest,
kexec
Nit: please change subject either to:
Add support for Kexec HandOver
or
Add support for KHO
No need to spell out right in the subject.
> The generic handover paths are already in place on RISC-V: the outgoing
> kernel publishes the handover FDT and the bootmem list in /chosen of the
> DTB built by of_kexec_alloc_and_setup_fdt(), and the incoming kernel
> picks both up while scanning that node. Only the architecture symbol is
> missing.
>
> Set it to 64BIT && MMU: ARCH_SUPPORTS_KEXEC_FILE is already 64BIT only,
> and KEXEC_HANDOVER selects CMA, which depends on MMU.
>
> Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
>
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index e7891a2a89da..a5c56252ff44 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -1125,6 +1125,9 @@ config ARCH_SELECTS_KEXEC_FILE
> config ARCH_SUPPORTS_KEXEC_PURGATORY
> def_bool ARCH_SUPPORTS_KEXEC_FILE
>
> +config ARCH_SUPPORTS_KEXEC_HANDOVER
> + def_bool 64BIT && MMU
> +
> config ARCH_SUPPORTS_CRASH_DUMP
> def_bool y
Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
But pre-reqs. should be applied prior taking this series:
1. https://lore.kernel.org/all/20261023054518.3258350-1-gthelen@google.com
2. https://lore.kernel.org/all/20261104-kho-bootmem-sizing-v2-0-b0d1a834780f@kernel.org
--
Pasha
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v3 3/4] selftests: kho: Add riscv support
2026-11-06 7:14 [PATCH v3 0/4] riscv: Enable kexec handover and live update Chen Pei
2026-11-06 7:14 ` [PATCH v3 1/4] riscv: Call early_ioremap_setup() before parsing the DTB Chen Pei
2026-11-06 7:14 ` [PATCH v3 2/4] riscv: Add support for kexec handover (KHO) Chen Pei
@ 2026-11-06 7:14 ` Chen Pei
2026-11-08 11:16 ` Mike Rapoport
2026-11-08 15:24 ` Pasha Tatashin
2026-11-06 7:14 ` [PATCH v3 4/4] selftests: liveupdate: " Chen Pei
3 siblings, 2 replies; 13+ messages in thread
From: Chen Pei @ 2026-11-06 7:14 UTC (permalink / raw)
To: pjw, palmer, alex, rppt, pasha.tatashin, pratyush, graf, shuah
Cc: guoren, linux-riscv, linux-kernel, linux-mm, linux-kselftest,
kexec
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 <cp0613@linux.alibaba.com>
---
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
^ permalink raw reply related [flat|nested] 13+ messages in thread* Re: [PATCH v3 3/4] selftests: kho: Add riscv support
2026-11-06 7:14 ` [PATCH v3 3/4] selftests: kho: Add riscv support Chen Pei
@ 2026-11-08 11:16 ` Mike Rapoport
2026-11-08 15:24 ` Pasha Tatashin
1 sibling, 0 replies; 13+ messages in thread
From: Mike Rapoport @ 2026-11-08 11:16 UTC (permalink / raw)
To: Chen Pei
Cc: pjw, palmer, alex, pasha.tatashin, pratyush, graf, shuah, guoren,
linux-riscv, linux-kernel, linux-mm, linux-kselftest, kexec
On Fri, Nov 06, 2026 at 03:14:58PM +0800, Chen Pei wrote:
> 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 <cp0613@linux.alibaba.com>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
> 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
--
Sincerely yours,
Mike.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v3 3/4] selftests: kho: Add riscv support
2026-11-06 7:14 ` [PATCH v3 3/4] selftests: kho: Add riscv support Chen Pei
2026-11-08 11:16 ` Mike Rapoport
@ 2026-11-08 15:24 ` Pasha Tatashin
1 sibling, 0 replies; 13+ messages in thread
From: Pasha Tatashin @ 2026-11-08 15:24 UTC (permalink / raw)
To: Chen Pei
Cc: pjw, palmer, alex, rppt, pasha.tatashin, pratyush, graf, shuah,
guoren, linux-riscv, linux-kernel, linux-mm, linux-kselftest,
kexec
On Fri, 06 Nov 2026 15:14:58 +0800, Chen Pei <cp0613@linux.alibaba.com> wrote:
> Describe the machine the KHO vmtest runner needs to boot riscv64, so the
> test stops being skipped on this architecture.
Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
--
Pasha
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH v3 4/4] selftests: liveupdate: Add riscv support
2026-11-06 7:14 [PATCH v3 0/4] riscv: Enable kexec handover and live update Chen Pei
` (2 preceding siblings ...)
2026-11-06 7:14 ` [PATCH v3 3/4] selftests: kho: Add riscv support Chen Pei
@ 2026-11-06 7:14 ` Chen Pei
2026-11-08 11:16 ` Mike Rapoport
2026-11-08 15:24 ` Pasha Tatashin
3 siblings, 2 replies; 13+ messages in thread
From: Chen Pei @ 2026-11-06 7:14 UTC (permalink / raw)
To: pjw, palmer, alex, rppt, pasha.tatashin, pratyush, graf, shuah
Cc: guoren, linux-riscv, linux-kernel, linux-mm, linux-kselftest,
kexec
Teach the live update vmtest runners about riscv64, so the LUO tests can
be run on this architecture.
LIVEUPDATE depends only on KEXEC_HANDOVER, enabled for riscv64 by the
previous commit, so nothing in the tests stood in the way.
Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
---
Test: qemu-system-riscv64 (virt, -cpu max, -m 1G, -smp 2, TCG), in-tree
runner "tools/testing/selftests/liveupdate/vmtest.sh -t riscv64 -T <suite>",
all four suites:
ok 1 luo_kexec_simple succeeded
ok 1 luo_multi_session succeeded
ok 1 luo_stress_files succeeded
ok 1 luo_stress_sessions succeeded
each with "# Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0". The
simple suite's serial log shows the handover round trip:
KHO: found kexec handover data.
luo: Retrieved live update data, liveupdate number: 1
# [STAGE 2] Test data verified successfully.
--- SIMPLE KEXEC TEST PASSED ---
tools/testing/selftests/liveupdate/config.riscv64 | 3 +++
tools/testing/selftests/liveupdate/run-vmtests.sh | 2 +-
tools/testing/selftests/liveupdate/vmtest.sh | 8 +++++++-
3 files changed, 11 insertions(+), 2 deletions(-)
create mode 100644 tools/testing/selftests/liveupdate/config.riscv64
diff --git a/tools/testing/selftests/liveupdate/config.riscv64 b/tools/testing/selftests/liveupdate/config.riscv64
new file mode 100644
index 000000000000..edbc551199b0
--- /dev/null
+++ b/tools/testing/selftests/liveupdate/config.riscv64
@@ -0,0 +1,3 @@
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_OF_PLATFORM=y
diff --git a/tools/testing/selftests/liveupdate/run-vmtests.sh b/tools/testing/selftests/liveupdate/run-vmtests.sh
index 6f592aec0f85..c3d828cfd63b 100755
--- a/tools/testing/selftests/liveupdate/run-vmtests.sh
+++ b/tools/testing/selftests/liveupdate/run-vmtests.sh
@@ -4,7 +4,7 @@
SCRIPT_DIR=$(dirname "$(realpath "$0")")
TEST_RUNNER="$SCRIPT_DIR/vmtest.sh"
-TARGETS=("x86_64" "aarch64")
+TARGETS=("x86_64" "aarch64" "riscv64")
GREEN='\033[0;32m'
RED='\033[0;31m'
diff --git a/tools/testing/selftests/liveupdate/vmtest.sh b/tools/testing/selftests/liveupdate/vmtest.sh
index dea5a6fb2abc..70a8d978077a 100755
--- a/tools/testing/selftests/liveupdate/vmtest.sh
+++ b/tools/testing/selftests/liveupdate/vmtest.sh
@@ -25,6 +25,10 @@ function get_arch_conf() {
QEMU_CMD="qemu-system-x86_64"
KERNEL_IMAGE="bzImage"
KERNEL_CMDLINE="console=ttyS0"
+ elif [[ "$arch" == "riscv" ]]; then
+ QEMU_CMD="qemu-system-riscv64 -M virt -cpu max"
+ KERNEL_IMAGE="Image"
+ KERNEL_CMDLINE="console=ttyS0"
else
echo "Unsupported architecture: $arch"
exit 1
@@ -37,7 +41,7 @@ $0 [-d build_dir] [-j jobs] [-t target_arch] [-T test_name] [-w workspace_dir] [
Options:
-d) path to the kernel build directory (default: .luo_test_build.<arch>)
-j) number of jobs for compilation
- -t) run test for target_arch (aarch64, x86_64)
+ -t) run test for target_arch (aarch64, x86_64, riscv64)
-T) test name to run (default: luo_kexec_simple)
-w) custom workspace directory (default: creates temp dir)
-k) keep workspace directory
@@ -87,6 +91,7 @@ function detect_cross_compile() {
case "$target" in
aarch64) candidate="aarch64-linux-gnu-" ;;
x86_64) candidate="x86_64-linux-gnu-" ;;
+ riscv64) candidate="riscv64-linux-gnu-" ;;
*) skip "Auto-detection for target '$target' not supported. Please set CROSS_COMPILE manually." ;;
esac
@@ -194,6 +199,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
^ permalink raw reply related [flat|nested] 13+ messages in thread* Re: [PATCH v3 4/4] selftests: liveupdate: Add riscv support
2026-11-06 7:14 ` [PATCH v3 4/4] selftests: liveupdate: " Chen Pei
@ 2026-11-08 11:16 ` Mike Rapoport
2026-11-08 15:24 ` Pasha Tatashin
1 sibling, 0 replies; 13+ messages in thread
From: Mike Rapoport @ 2026-11-08 11:16 UTC (permalink / raw)
To: Chen Pei
Cc: pjw, palmer, alex, pasha.tatashin, pratyush, graf, shuah, guoren,
linux-riscv, linux-kernel, linux-mm, linux-kselftest, kexec
On Fri, Nov 06, 2026 at 03:14:59PM +0800, Chen Pei wrote:
> Teach the live update vmtest runners about riscv64, so the LUO tests can
> be run on this architecture.
>
> LIVEUPDATE depends only on KEXEC_HANDOVER, enabled for riscv64 by the
> previous commit, so nothing in the tests stood in the way.
>
> Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
> tools/testing/selftests/liveupdate/config.riscv64 | 3 +++
> tools/testing/selftests/liveupdate/run-vmtests.sh | 2 +-
> tools/testing/selftests/liveupdate/vmtest.sh | 8 +++++++-
> 3 files changed, 11 insertions(+), 2 deletions(-)
> create mode 100644 tools/testing/selftests/liveupdate/config.riscv64
--
Sincerely yours,
Mike.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH v3 4/4] selftests: liveupdate: Add riscv support
2026-11-06 7:14 ` [PATCH v3 4/4] selftests: liveupdate: " Chen Pei
2026-11-08 11:16 ` Mike Rapoport
@ 2026-11-08 15:24 ` Pasha Tatashin
1 sibling, 0 replies; 13+ messages in thread
From: Pasha Tatashin @ 2026-11-08 15:24 UTC (permalink / raw)
To: Chen Pei
Cc: pjw, palmer, alex, rppt, pasha.tatashin, pratyush, graf, shuah,
guoren, linux-riscv, linux-kernel, linux-mm, linux-kselftest,
kexec
On Fri, 06 Nov 2026 15:14:59 +0800, Chen Pei <cp0613@linux.alibaba.com> wrote:
> Teach the live update vmtest runners about riscv64, so the LUO tests can
> be run on this architecture.
>
> LIVEUPDATE depends only on KEXEC_HANDOVER, enabled for riscv64 by the
> previous commit, so nothing in the tests stood in the way.
>
>
> [...]
Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
--
Pasha
^ permalink raw reply [flat|nested] 13+ messages in thread