This patchset adds support for pvpanic pci device. This is the second revision, re-written after Peter Maydell's feedback: - split the code in common, isa and pci - obtained 0x101 device id per documenation from Gerd Hoffmann - fix-up minor documentation issue
How to test this: /usr/bin/qemu-system-aarch64 \ -machine virt,gic-version=3 -device pvpanic-pci After that you need to run a Linux kernel as guest, but you have to also apply the patches I have sent for adding pci support for the pvpanic driver [1]. [1] https://lkml.org/lkml/2020/10/29/645 Mihai Carabas (3): hw/misc/pvpanic: split-out generic and bus dependent code hw/misc/pvpanic: add PCI interface support pvpanic : update pvpanic spec document docs/specs/pci-ids.txt | 2 + docs/specs/pvpanic.txt | 13 ++++++- hw/i386/Kconfig | 1 - hw/misc/Kconfig | 13 ++++++- hw/misc/meson.build | 4 +- hw/misc/pvpanic-isa.c | 95 +++++++++++++++++++++++++++++++++++++++++++++++ hw/misc/pvpanic-pci.c | 87 +++++++++++++++++++++++++++++++++++++++++++ hw/misc/pvpanic.c | 85 +++--------------------------------------- include/hw/misc/pvpanic.h | 24 +++++++++++- include/hw/pci/pci.h | 1 + tests/qtest/meson.build | 2 +- 11 files changed, 241 insertions(+), 86 deletions(-) create mode 100644 hw/misc/pvpanic-isa.c create mode 100644 hw/misc/pvpanic-pci.c -- 1.8.3.1