Skip to content

qemu-kvm: Clean up and enhance MSI irqchip support

Jan Kiszka kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest9 patches 32 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9qemu-kvm: Drop unneeded kvm_irq_routing_entry declarationhw/pci.h+0 -20 replies
2/9qemu-kvm: Rename kvm_msix_message to KVMMsiMessagehw/msix.c hw/pci.h kvm.h+14 -130 replies
3/9qemu-kvm: Refactor MSI core API of KVMhw/msix.c kvm.h qemu-kvm.c+22 -380 replies
4/9qemu-kvm: Fix and clean up msix vector use/unuse hookshw/msix.c+6 -110 replies
5/9qemu-kvm: Move gsi bits from kvm_msix_vector_add to kvm_msi_add_messagehw/msix.c qemu-kvm.c+11 -130 replies
6/9qemu-kvm: Move entry comparison into kvm_msi_update_messagehw/msix.c qemu-kvm.c+26 -140 replies
7/9qemu-kvm: Add in-kernel irqchip support for MSIhw/msi.c hw/pci.h+115 -00 replies
8/9qemu-kvm: Refresh MSI settings after vmloadhw/msi.c hw/msi.h hw/pci.c+16 -00 replies
8/9qemu-kvm: Refresh MSI settings after vmloadhw/msi.c hw/msi.h hw/pci.c+16 -010 replies
9/9qemu-kvm: hpet: Add MSI support for in-kernel irqchip modehw/hpet.c+70 -18 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/9] qemu-kvm: Clean up and enhance MSI irqchip support

I've still plans to consolidate MSI-X mask notifiers and KVM hooks, but that can wait until we go upstream.

This version still makes classic MSI usable in irqchip mode, now not only for PCI devices (AHCI, HDA) but also for the HPET (with msi=on). Moreover, it contains an additional patch to refresh the MSI IRQ routes after vmload.

Jan Kiszka (9):
qemu-kvm: Drop unneeded kvm_irq_routing_entry declaration
qemu-kvm: Rename kvm_msix_message to KVMMsiMessage
qemu-kvm: Refactor MSI core API of KVM
qemu-kvm: Fix and clean up msix vector use/unuse hooks
qemu-kvm: Move gsi bits from kvm_msix_vector_add to
kvm_msi_add_message
qemu-kvm: Move entry comparison into kvm_msi_update_message
qemu-kvm: Add in-kernel irqchip support for MSI
qemu-kvm: Refresh MSI settings after vmload
qemu-kvm: hpet: Add MSI support for in-kernel irqchip mode

 hw/hpet.c  |   71 ++++++++++++++++++++++++++++++++++-
 hw/msi.c   |  124 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/msi.h   |    1 +
 hw/msix.c  |   73 ++++++++++++------------------------
 hw/pci.c   |    2 +
 hw/pci.h   |   16 +++-----
 kvm.h      |   20 ++++++----
 qemu-kvm.c |   57 ++++++++++++++++++----------
 8 files changed, 276 insertions(+), 88 deletions(-)