Skip to content

msi: Small cleanups and fixes

Jan Kiszka qemu-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 20 repliesIn review
  2. v17 patches 10 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9msi: Fix copy&paste mistake in msi_uninithw/msi.c+1 -10 replies
2/9msi: Guard msi/msix_write_config with msi_presenthw/msi.c hw/msix.c+3 -20 replies
3/9msi: Guard msi_reset with msi_presenthw/msi.c+4 -00 replies
4/9msi: Use msi/msix_present more consistentlyhw/msi.c hw/msix.c+9 -60 replies
5/9msi: Invoke msi/msix_reset from PCI corehw/ioh3420.c hw/pci.c hw/pci_bridge.c +3 more+11 -42 replies
6/9msi: Invoke msi/msix_write_config from PCI corehw/ide/ich.c hw/intel-hda.c hw/ioh3420.c +5 more+4 -250 replies
7/9msi: Invoke msi/msix_uninit from PCI corehw/ide/ich.c hw/intel-hda.c hw/ioh3420.c +4 more+8 -230 replies
8/9msix: Align MSI-X constants to libpci definitions and extend themhw/msix.c hw/pci_regs.h+19 -198 replies
9/9msi: Move PCI_MSI_PENDING_32/64 into pci_regs.hhw/msi.c hw/pci_regs.h+2 -410 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/9] msi: Small cleanups and fixes

A few patches to the MSI and MSI-X layer that clean up the interfaces and fix reset issues. They are from my MSI rework to prepare it for KVM's requirements (in-kernel irqchip).

In contrast to the previous version, this one moves msi[x]_reset, msi[x]_write_config and msi[x]_uninit into the PCI core, avoiding related bugs and reducing boilerplate code on device side.

CC Alexander Graf <[email protected]>
CC Gerd Hoffmann <[email protected]>
CC Isaku Yamahata <[email protected]>

Jan Kiszka (9):
msi: Fix copy&paste mistake in msi_uninit
msi: Guard msi/msix_write_config with msi_present
msi: Guard msi_reset with msi_present
msi: Use msi/msix_present more consistently
msi: Invoke msi/msix_reset from PCI core
msi: Invoke msi/msix_write_config from PCI core
msi: Invoke msi/msix_uninit from PCI core
msix: Align MSI-X constants to libpci definitions and extend them
msi: Move PCI_MSI_PENDING_32/64 into pci_regs.h

 hw/ide/ich.c            |    9 ---------
 hw/intel-hda.c          |   13 -------------
 hw/ioh3420.c            |    8 ++------
 hw/msi.c                |   17 +++++++++--------
 hw/msix.c               |   39 ++++++++++++++++++++-------------------
 hw/pci.c                |   10 ++++++++++
 hw/pci_bridge.c         |    4 ++++
 hw/pci_regs.h           |   16 ++++++++++------
 hw/virtio-pci.c         |   14 +++-----------
 hw/xio3130_downstream.c |    8 ++------
 hw/xio3130_upstream.c   |    7 +------
 11 files changed, 61 insertions(+), 84 deletions(-)