tests: add (riscv virt) machine mapping to testenv
PATCH 1/1 tests: add (riscv virt) machine mapping to testenv
Some qemu-iotests(040 etc) use PCI disk to do test. Without the mapping, RISC-V flavor use spike as default machine which has no PCI bus, causing test failure.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/894
--- tests/qemu-iotests/testenv.py | 2 ++ 1 file changed, 2 insertions(+)
tests/qemu-iotests/testenv.py +2 -0
@@ -238,6 +238,8 @@ def __init__(self, imgfmt: str, imgproto: str, aiomode: str, ('aarch64', 'virt'), ('avr', 'mega2560'), ('m68k', 'virt'), + ('riscv32', 'virt'), + ('riscv64', 'virt'), ('rx', 'gdbsim-r5f562n8'), ('tricore', 'tricore_testboard') )
Signature · 1 line
2.34.1
Quoted 7 lines · laokz
Some qemu-iotests(040 etc) use PCI disk to do test. Without the mapping, RISC-V flavor use spike as default machine which has no PCI bus, causing test failure.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/894
Signed-off-by laokz <[email protected]>
Hi!
Thank you for this quick patch, it looks good to me! I can reproduce the problem you reported, and this patch does resolve it.
There might be one problem, though, and that’s the Signed-off-by tag. The qemu project requires it to be formatted like the Linux kernel does, and so our docs/devel/submitting-a-patch.rst file links to http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/SubmittingPatches?id=f6f94e2ab1b33f0082ac22d71f66385a60d8157f#n297 . Like the kernel, we thus require a real name to appear in the S-o-b.
I’m used to seeing names written with a capital letter, and personal names consisting just of a single name are rare, so that’s why I have to ask you – is laokz your real name, i.e. not a pseudonym? If you say it is, that’ll be fine for me.
If it isn’t and you don’t wish to disclose your real name, that will be a bit of a problem legally, but I think in this case the patch is simple enough that we can probably find a way around it.
Hanna
Quoted 17 lines
--- tests/qemu-iotests/testenv.py | 2 ++ 1 file changed, 2 insertions(+)tests/qemu-iotests/testenv.py +2
-0@@ -238,6 +238,8 @@ def __init__(self, imgfmt: str, imgproto: str, aiomode: str, ('aarch64', 'virt'), ('avr', 'mega2560'), ('m68k', 'virt'), + ('riscv32', 'virt'), + ('riscv64', 'virt'), ('rx', 'gdbsim-r5f562n8'), ('tricore', 'tricore_testboard') )
PATCH v2 1/1 tests: add (riscv virt) machine mapping to testenv
Some qemu-iotests(040 etc) use PCI disk to do test. Without the mapping, RISC-V flavor use spike as default machine which has no PCI bus, causing test failure.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/894
---
Thanks for the detailed info. Corrected S-o-b tag.
tests/qemu-iotests/testenv.py | 2 ++ 1 file changed, 2 insertions(+)
tests/qemu-iotests/testenv.py +2 -0
@@ -238,6 +238,8 @@ def __init__(self, imgfmt: str, imgproto: str, aiomode: str, ('aarch64', 'virt'), ('avr', 'mega2560'), ('m68k', 'virt'), + ('riscv32', 'virt'), + ('riscv64', 'virt'), ('rx', 'gdbsim-r5f562n8'), ('tricore', 'tricore_testboard') )
Signature · 1 line
2.34.1
Quoted 8 lines · laokz
Some qemu-iotests(040 etc) use PCI disk to do test. Without the mapping, RISC-V flavor use spike as default machine which has no PCI bus, causing test failure.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/894
Signed-off-by Kai Zhang <[email protected]>
Alistair
Quoted 23 lines
---
Thanks for the detailed info. Corrected S-o-b tag.tests/qemu-iotests/testenv.py | 2 ++ 1 file changed, 2 insertions(+)tests/qemu-iotests/testenv.py +2
-1@@ -238,6 +238,8 @@ def __init__(self, imgfmt: str, imgproto: str, aiomode: str, ('aarch64', 'virt'), ('avr', 'mega2560'), ('m68k', 'virt'), + ('riscv32', 'virt'), + ('riscv64', 'virt'), ('rx', 'gdbsim-r5f562n8'), ('tricore', 'tricore_testboard') ) --2.34.1
Quoted 4 lines · laokz
Some qemu-iotests(040 etc) use PCI disk to do test. Without the mapping, RISC-V flavor use spike as default machine which has no PCI bus, causing test failure.
Quoted 8 lines
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/894
Signed-off-by Kai Zhang <[email protected]>---
Thanks for the detailed info. Corrected S-o-b tag.tests/qemu-iotests/testenv.py | 2 ++ 1 file changed, 2 insertions(+)
Thanks!
I’ve applied this patch to my block branch:
On Wed, Mar 09, 2022 at 15:56 +0100,Hanna Reitz wrote:
Quoted 11 lines · laokz
Quoted 10 lines
Some qemu-iotests(040 etc) use PCI disk to do test. Without the mapping, RISC-V flavor use spike as default machine which has no PCI bus, causing test failure.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/894
Signed-off-by Kai Zhang <[email protected]>---
Thanks for the detailed info. Corrected S-o-b tag.
Quoted 9 lines
Quoted 2 lines
tests/qemu-iotests/testenv.py| 2 ++1 file changed, 2 insertions(+)Thanks!
I’ve applied this patch to my block branch:
Got it. Thanks for your help!