[RFC PATCH 0/3] MIPS VirtIO Machine

Jiaxun Yang posted 3 patches 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20221124212916.723490-1-jiaxun.yang@flygoat.com
Maintainers: "Philippe Mathieu-Daudé" <philmd@linaro.org>, Laurent Vivier <laurent@vivier.eu>
configs/devices/mips-softmmu/common.mak |    1 +
hw/mips/Kconfig                         |   18 +
hw/mips/meson.build                     |    1 +
hw/mips/virt.c                          | 1039 +++++++++++++++++++++++
hw/misc/Kconfig                         |    3 +
hw/misc/meson.build                     |    1 +
hw/misc/mips_trickbox.c                 |   97 +++
hw/misc/trace-events                    |    4 +
include/hw/intc/goldfish_pic.h          |    2 +
include/hw/misc/mips_trickbox.h         |   41 +
10 files changed, 1207 insertions(+)
create mode 100644 hw/mips/virt.c
create mode 100644 hw/misc/mips_trickbox.c
create mode 100644 include/hw/misc/mips_trickbox.h
[RFC PATCH 0/3] MIPS VirtIO Machine
Posted by Jiaxun Yang 2 weeks ago
Hi there,

This patchset is to add a new machine type for MIPS architecture, which
is purely a VirtIO machine.

It is design to utilize existing VirtIO infrastures but also comptitable
with MIPS's existing internal simulation tools.

It should be able to cooperate with any MIPS core and boot Generic MIPS
kernel.

For testing purpose I've built little endian kernel[1] to work with this
machine with R4X00, loongson2f, octeon, mips32r2, mips64r2 and mips64r6. 

TODO:
- Documentation
- Test against big endian kernel
- nanoMIPS options

Thanks

[1]: https://github.com/FlyGoat/qemu-testing-blob/tree/main/kernel

Jiaxun Yang (3):
  hw/intc: Add missing include for goldfish_pic.h
  hw/misc: Add MIPS Trickbox device
  hw/mips: Add MIPS VirtIO board

 configs/devices/mips-softmmu/common.mak |    1 +
 hw/mips/Kconfig                         |   18 +
 hw/mips/meson.build                     |    1 +
 hw/mips/virt.c                          | 1039 +++++++++++++++++++++++
 hw/misc/Kconfig                         |    3 +
 hw/misc/meson.build                     |    1 +
 hw/misc/mips_trickbox.c                 |   97 +++
 hw/misc/trace-events                    |    4 +
 include/hw/intc/goldfish_pic.h          |    2 +
 include/hw/misc/mips_trickbox.h         |   41 +
 10 files changed, 1207 insertions(+)
 create mode 100644 hw/mips/virt.c
 create mode 100644 hw/misc/mips_trickbox.c
 create mode 100644 include/hw/misc/mips_trickbox.h

-- 
2.37.1 (Apple Git-137.1)