riscv-to-apply queue
Subsystems (3)
From: Alistair Francis <[email protected]>
The following changes since commit 499039798cdad7d86b787fec0eaf1da4151c0f05:
Merge tag 'pull-request-2026-07-12' of https://gitlab.com/huth/qemu into staging (2026-07-12 21:49:04 +0200)
are available in the Git repository at:
https://github.com/alistair23/qemu.git tags/pull-riscv-to-apply-20260714
for you to fetch changes up to 8fb307591625731060d399aca42373c02c7cb040:
tests/functional/riscv64: sifive_u: Fix kernel command line (2026-07-14 11:56:14 +1000)
----------------------------------------------------------------
RISC-V PR for 11.1
* Mark Microchip PolarFire SoC as Odd Fixes in MAINTAINERS
* Fix RISC-V privilege level in uftrace plugin
* Add K230 Linux boot tests
* Fix kernel command line for sifive_u test
----------------------------------------------------------------
Alistair Francis (1):
MAINTAINERS: Mark Microchip PolarFire SoC as Odd Fixes
Bin Meng (1):
tests/functional/riscv64: sifive_u: Fix kernel command line
Junze Cao (1):
tests/functional/riscv64: Add K230 Linux boot tests
Yanfeng Liu (1):
uftrace: riscv privilege level
MAINTAINERS | 5 +- contrib/plugins/uftrace.c | 13 +++- tests/functional/riscv64/meson.build | 2 + tests/functional/riscv64/test_k230.py | 108 ++++++++++++++++++++++++++++++ tests/functional/riscv64/test_sifive_u.py | 6 +- 5 files changed, 127 insertions(+), 7 deletions(-) create mode 100755 tests/functional/riscv64/test_k230.py
[PULL 2/4] uftrace: riscv privilege level
From: Yanfeng Liu <[email protected]>
This adds RiscV virtual user and supervisor privilege levels to uftrace plugin to avoid crashing with H extension guests.
Message-ID: <[email protected]>
--- contrib/plugins/uftrace.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
contrib/plugins/uftrace.c +10 -3
@@ -109,6 +109,8 @@ typedef enum {RISCV64_SUPERVISOR ,RISCV64_RESERVED ,RISCV64_MACHINE , +RISCV64_VUSER , +RISCV64_VSUPERVISOR ,RISCV64_PRIVILEGE_LEVEL_MAX , } Riscv64PrivilegeLevel;
@@ -153,8 +155,10 @@ static void uftrace_write_map(bool system_emulation)const char *path ="./uftrace.data/sid-0.map" ;if (system_emulation &&access (path,F_OK ) ==0 ) { -/* do not erase existing map in system emulation, as a custom one might -* already have been generated by uftrace_symbols.py */ +/* +* do not erase existing map in system emulation, as a custom one might +* already have been generated by uftrace_symbols.py +*/ return ; }
@@ -706,6 +710,8 @@ static const char *riscv64_get_privilege_level_name(uint8_t pl)case RISCV64_SUPERVISOR :return "Supervisor" ;case RISCV64_RESERVED :return "Unknown" ;case RISCV64_MACHINE :return "Machine" ; +case RISCV64_VUSER :return "VUser" ; +case RISCV64_VSUPERVISOR :return "VSupervisor" ;default :g_assert_not_reached (); }
@@ -986,7 +992,8 @@ QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_id_t id, score =qemu_plugin_scoreboard_new (sizeof (Cpu));qemu_plugin_register_vcpu_init_cb (id, vcpu_init,NULL ); -qemu_plugin_register_atexit_cb (id, at_exit, (void *) info->system_emulation); +qemu_plugin_register_atexit_cb (id, at_exit, + (void *) info->system_emulation);qemu_plugin_register_vcpu_tb_trans_cb (id, vcpu_tb_trans,NULL );return 0 ;
Signature · 1 line
2.54.0
[PULL 1/4] MAINTAINERS: Mark Microchip PolarFire SoC as Odd Fixes
In reply to [email protected]From: Alistair Francis <[email protected]>
Mark the "Microchip PolarFire SoC Icicle Kit" as Odd Fixes and enlist Conor and Sebastian as people to help deal with the fixes.
Message-ID: <[email protected]>
--- MAINTAINERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
MAINTAINERS +3 -1
@@ -1760,8 +1760,10 @@ F: target/riscv/xlrbr.decode F: tests/tcg/riscv64/test-crc32.S Microchip PolarFire SoC Icicle Kit +M: Conor Dooley <[email protected]> +M: Sebastian Huber <[email protected]> L: [email protected] -S: Supported +S: Odd Fixes F: docs/system/riscv/microchip-icicle-kit.rst F: hw/riscv/microchip_pfsoc.c F: hw/char/mchp_pfsoc_mmuart.c
Signature · 1 line
2.54.0
[PULL 4/4] tests/functional/riscv64: sifive_u: Fix kernel command line
In reply to [email protected]From: Bin Meng <[email protected]>
Build the complete kernel command line before adding it to the QEMU arguments. This ensures the panic, noreboot and rootwait options are passed to the guest.
Message-ID: <[email protected]>
--- tests/functional/riscv64/test_sifive_u.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
tests/functional/riscv64/test_sifive_u.py +3 -3
@@ -35,9 +35,6 @@ def do_test_riscv64_sifive_u_mmc_spi(self, connect_card): kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE + 'earlycon=sbi console=ttySIF0 ' 'root=/dev/mmcblk0 ') - self.vm.add_args('-kernel', kernel_path, - '-append', kernel_command_line, - '-no-reboot') if connect_card: kernel_command_line += 'panic=-1 noreboot rootwait ' self.vm.add_args('-drive', f'file={rootfs_path},if=sd,format=raw')
@@ -46,6 +43,9 @@ def do_test_riscv64_sifive_u_mmc_spi(self, connect_card): kernel_command_line += 'panic=0 noreboot ' pattern = 'Cannot open root device "mmcblk0" or unknown-block(0,0)' + self.vm.add_args('-kernel', kernel_path, + '-append', kernel_command_line, + '-no-reboot') self.vm.launch() self.wait_for_console_pattern(pattern)
Signature · 1 line
2.54.0
[PULL 3/4] tests/functional/riscv64: Add K230 Linux boot tests
In reply to [email protected]From: Junze Cao <[email protected]>
The K230 machine supports direct Linux boot and firmware boot through the SDK U-Boot, but neither path has functional test coverage.
Add one test for each boot path. Both tests use the Yocto initramfs assets and wait for the shell prompt to confirm a successful boot.
Fetch the boot assets from the k230-boot-assets repository maintained by Chao Liu. Pin the URLs to a repository commit and verify each asset with its SHA-256 digest.
Message-ID: <[email protected]>
--- MAINTAINERS | 1 + tests/functional/riscv64/meson.build | 2 + tests/functional/riscv64/test_k230.py | 108 ++++++++++++++++++++++++++ 3 files changed, 111 insertions(+) create mode 100755 tests/functional/riscv64/test_k230.py
MAINTAINERS +1 -0
@@ -1830,6 +1830,7 @@ F: hw/riscv/k230.c F: hw/watchdog/k230_wdt.c F: include/hw/riscv/k230.h F: include/hw/watchdog/k230_wdt.h +F: tests/functional/riscv64/test_k230.py F: tests/qtest/k230-wdt-test.c RX Machines
tests/functional/riscv64/meson.build +2 -0
@@ -2,6 +2,7 @@ test_riscv64_timeouts = { 'boston' : 120, + 'k230' : 120, 'tuxrun' : 120, }
@@ -13,6 +14,7 @@ tests_riscv64_system_quick = [ tests_riscv64_system_thorough = [ 'endianness', 'boston', + 'k230', 'sifive_u', 'tt_atlantis', 'tuxrun',
tests/functional/riscv64/test_k230.py new file +108 -0
108 lines not on this page · raw message
Signature · 1 line
2.54.0
Quoted 19 lines · On Tue, 2026-07-14 at 14:07 +1000, [email protected] wrote:
From: Alistair Francis <[email protected]>
The following changes since commit
499039798cdad7d86b787fec0eaf1da4151c0f05:Merge tag 'pull-request-2026-07-12' of
https://gitlab.com/huth/qemu into staging (2026-07-12 21:49:04 +0200)are available in the Git repository at:
https://github.com/alistair23/qemu.git tags/pull-riscv-to-apply-
20260714for you to fetch changes up to
8fb307591625731060d399aca42373c02c7cb040:tests/functional/riscv64:
sifive_u: Fix kernel command line (2026- 07-14 11:56:14 +1000)
Quoted 7 lines
----------------------------------------------------------------
RISC-V PR for 11.1* Mark Microchip PolarFire SoC as Odd Fixes in
MAINTAINERS
* Fix RISC-V privilege level in uftrace plugin
* Add K230 Linux boot tests
* Fix kernel command line forsifive_utest
Assuming that we don't backport plugin fixes then nothing in this PR should be backported to stable.
Alistair
Quoted 22 lines
----------------------------------------------------------------
Alistair Francis (1):
MAINTAINERS: Mark Microchip PolarFire SoC as Odd FixesBin Meng (1):
tests/functional/riscv64:sifive_u: Fix kernel command lineJunze Cao (1):
tests/functional/riscv64: Add K230 Linux boot testsYanfeng Liu (1):
uftrace: riscv privilege levelMAINTAINERS | 5 +- contrib/plugins/uftrace.c | 13 +++- tests/functional/riscv64/meson.build | 2 + tests/functional/riscv64/test_k230.py | 108
++++++++++++++++++++++++++++++
tests/functional/riscv64/test_sifive_u.py | 6 +-5 files changed, 127 insertions(+), 7 deletions(-)create mode 100755
tests/functional/riscv64/test_k230.py
riscv & qemu-stable (was: [PULL 0/4] riscv-to-apply queue)
On 7/14/26 07:19, Alistair Francis wrote:
[..]
Quoted 2 lines
Assuming that we don't backport plugin fixes then nothing in this PR should be backported to stable.
I was afraid you might feel uncomfortable, after recent my emails about qemu-stable in context of riscv. But everything I'm trying to do are attempts to make things easier, not more complicated :) Maybe I wanted too much, asking if there's something for stable in every riscv pullreq in the past :)
I learned about the riscv pull requests - everything with Fixes and Resolves should be picked up. That's okay with me. I think I'll take it easier - pick things up for the most recent stable series (currently 11.0.x), and for older/LTS series, I'll take just what can be easily applied - to avoid losing everyone's time and patience in long discussions about what needs to be picked up and what should not. As long as riscv don't have versioned machines in qemu, I assume it is a fast-moving target, so older qemu is not very relevant for it anymore (because besides fixes, older versions don't have many required features too, developed later), and there's no need to spend significant resources in that area.
Hopefully this roadmap will work :)
Thanks,
/mjt
Re: riscv & qemu-stable (was: [PULL 0/4] riscv-to-apply queue)
Quoted 9 lines · Michael Tokarev
On 7/14/26 07:19, Alistair Francis wrote:
[..]Quoted 3 lines
Assuming that we don't backport plugin fixes then nothing in this PR
should be backported to stable.I was afraid you might feel uncomfortable, after recent my emails about qemu-stable in context of riscv. But everything I'm trying to do are attempts to make things easier, not more complicated :)
Not at all!
I just feel guilty that you are picking up the slack and trying to make things easier/clearer
Quoted 2 lines
Maybe I wanted too much, asking if there's something for stable in every riscv pullreq in the past :)
I felt that was just because I was doing a bad job of indicating what should be backproted.
Quoted 3 lines
I learned about the riscv pull requests - everything with Fixes and Resolves should be picked up. That's okay with me. I think I'll
That seems like a good starting place. I can CC qemu-stable on anything else that stands out.
Do others not do something similar? Fixes and Resolves seems like the perfect indicator for backporting.
Quoted 9 lines
take it easier - pick things up for the most recent stable series (currently 11.0.x), and for older/LTS series, I'll take just what can be easily applied - to avoid losing everyone's time and patience in long discussions about what needs to be picked up and what should not. As long as riscv don't have versioned machines in qemu, I assume it is a fast-moving target, so older qemu is not very relevant for it anymore (because besides fixes, older versions don't have many required features too, developed later), and there's no need to spend significant resources in that area.
That all seems reasonable to me. It's tricky as it is moving fast and we have things like draft extensions, which makes more complex.
Alistair
Quoted 6 lines
Hopefully this roadmap will work :)
Thanks,
/mjt
Stefan Hajnoczi
AppliedApplied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/11.1 for any user-visible changes.