This series introduces support for in-kernel GICv3 ITS emulation. It is based on kernel API which is not released yet, therefore i post it as an RFC. However, if respective maintainers think this is appropriate, infrastructure-related parts of this set (patch N1 and parts of patch N4) can be applied right now, in order to simplify future addition.
Kernel patches which implement this functionality are: - [PATCH v2 00/15] KVM: arm64: GICv3 ITS emulation http://www.spinics.net/lists/arm-kernel/msg430724.html - [PATCH v3 0/7] KVM: arm/arm64: gsi routing support http://www.spinics.net/lists/kvm/msg119567.html Pavel Fedin (6): kvm: Make KVM_CAP_SIGNAL_MSI globally available hw/intc: Implement ITS base class Add vGICv3 ITS definitions kvm: Implement passing device ID to MSI routing functions kvm_arm: Implement support for ITS emulation by KVM arm/virt: Add ITS to the virt board hw/arm/virt.c | 47 ++++++++++++++--- hw/i386/kvm/pci-assign.c | 9 ++-- hw/intc/Makefile.objs | 2 + hw/intc/arm_gicv3_its_common.c | 96 ++++++++++++++++++++++++++++++++++ hw/intc/arm_gicv3_its_kvm.c | 88 +++++++++++++++++++++++++++++++ hw/vfio/pci.c | 11 ++-- hw/virtio/virtio-pci.c | 5 +- include/hw/intc/arm_gicv3_its_common.h | 63 ++++++++++++++++++++++ include/sysemu/kvm.h | 15 +++++- kvm-all.c | 27 ++++++---- kvm-stub.c | 5 +- linux-headers/asm-arm64/kvm.h | 1 + linux-headers/linux/kvm.h | 9 +++- target-arm/kvm_arm.h | 10 ++++ target-arm/machine.c | 16 ++++++ 15 files changed, 372 insertions(+), 32 deletions(-) create mode 100644 hw/intc/arm_gicv3_its_common.c create mode 100644 hw/intc/arm_gicv3_its_kvm.c create mode 100644 include/hw/intc/arm_gicv3_its_common.h -- 2.4.4