hw/intc/loongarch_extioi.c | 88 ++++++++++++- hw/loongarch/virt.c | 184 +++++++++++++++++++++++----- include/hw/intc/loongarch_extioi.h | 21 ++++ include/hw/loongarch/virt.h | 1 + target/loongarch/cpu.c | 2 +- target/loongarch/cpu.h | 1 + tests/qtest/libqos/loongarch-virt-machine.c | 114 +++++++++++++++++ tests/qtest/libqos/meson.build | 1 + tests/qtest/meson.build | 2 +- tests/qtest/numa-test.c | 53 ++++++++ 10 files changed, 428 insertions(+), 39 deletions(-) create mode 100644 tests/qtest/libqos/loongarch-virt-machine.c