This set of patches implemets PCI support for the s390 platform. Now it is possible to run virtio-net-pci and potentially all virtual pci devices conforming to s390 platform constrains. (In parallel I also post some changes to make vfio run on s390)
I hope to get feedback and guidance especially for kvm: extend kvm_irqchip_add_msi_route to work on s390 which adds the s390 interpretation of MSI-X to the common kvm add_msi_route functionality. Thx for any help, Frank Frank Blaschka (3): s390: Add PCI bus support s390: implement pci instructions kvm: extend kvm_irqchip_add_msi_route to work on s390 default-configs/s390x-softmmu.mak | 1 + hw/s390x/Makefile.objs | 1 + hw/s390x/css.c | 5 + hw/s390x/css.h | 1 + hw/s390x/s390-pci-bus.c | 447 +++++++++++++++++++++++ hw/s390x/s390-pci-bus.h | 252 +++++++++++++ hw/s390x/s390-virtio-ccw.c | 3 + hw/s390x/sclp.c | 10 +- include/hw/s390x/sclp.h | 8 + include/sysemu/kvm.h | 4 + kvm-all.c | 2 + target-arm/kvm.c | 5 + target-i386/kvm.c | 5 + target-mips/kvm.c | 5 + target-ppc/kvm.c | 5 + target-s390x/Makefile.objs | 2 +- target-s390x/cpu-models.h | 8 +- target-s390x/ioinst.c | 52 +++ target-s390x/ioinst.h | 1 + target-s390x/kvm.c | 77 ++++ target-s390x/pci_ic.c | 735 ++++++++++++++++++++++++++++++++++++++ target-s390x/pci_ic.h | 316 ++++++++++++++++ 22 files changed, 1942 insertions(+), 3 deletions(-) create mode 100644 hw/s390x/s390-pci-bus.c create mode 100644 hw/s390x/s390-pci-bus.h create mode 100644 target-s390x/pci_ic.c create mode 100644 target-s390x/pci_ic.h -- 1.8.5.5