tests/functional/riscv64: Add virt machine AIA boot test
Add coverage of the riscv64 virt machine's Advanced Interrupt Architecture models. With this the APLIC and IMSIC models are used by Linux, catching regressions. This test requires a kernel >= 6.10, as AIA drivers were added to Linux in 6.10. Boot time is ~5s on a laptop. Signed-off-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com> Message-ID: <20260617054034.1020724-4-joel@jms.id.au> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Joel Stanley committed
Jun 17, 2026 at 15:09 UTC
deda107b1cd8e23040cac276bb1e4ac0ba856fa6
1 file changed
+7
tests/functional/riscv64/test_tuxrun.py
+7
@@ -41,6 +41,13 @@ class TuxRunRiscV64Test(TuxRunBaselineTest):
41
self.common_tuxrun(kernel_asset=self.ASSET_RISCV64_KERNEL,
42
rootfs_asset=self.ASSET_RISCV64_ROOTFS)
43
44
+ def test_riscv64_aia(self):
45
+ self.set_machine('virt')
46
+ self.vm.set_machine('virt,aia=aplic-imsic')
47
+ self.cpu='max'
48
+ self.common_tuxrun(kernel_asset=self.ASSET_RISCV64_KERNEL,
49
+ rootfs_asset=self.ASSET_RISCV64_ROOTFS)
50
+
51
def test_riscv64_rv32(self):
52
self.set_machine('virt')
53
self.cpu='rv32'