Skip to content

Make KVM/MSI code device-ID-aware

Pavel Fedin qemu-devel 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 0 repliesNew
  2. v53 patches 6 repliesSuperseded
  3. v43 patches 5 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v33 patches1 replySuperseded
v23 patches5 repliesSuperseded
v13 patches7 repliesSuperseded

Changes in v6 from the cover letter

- Pass PCIDevice pointer also to kvm_arch_fixup_msi_route()

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kvm: Make KVM_CAP_SIGNAL_MSI globally availableinclude/sysemu/kvm.h kvm-all.c+14 -50 replies
2/3hw/pci: Introduce pci_requester_id()hw/i386/kvm/pci-assign.c hw/pci/msi.c hw/pci/pcie_aer.c +2 more+10 -50 replies
3/3kvm: Pass PCI device pointer to MSI routing functionshw/i386/kvm/pci-assign.c hw/vfio/pci.c hw/virtio/virtio-pci.c +8 more+31 -250 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchMichael S. Tsirkin
1/3
2/3R-b A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [Qemu-devel] [PATCH v6 0/3] Make KVM/MSI code device-ID-aware

On ARM architecture ITS (Interrupt Translation Service), additionally to normal MSI data, uses also side-band device IDs. This series prepares the infrastructure to handling them.

This small series is actually an extraction from vITS support RFC
(https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg07074.html).
Nobody reviewed it so far, however some bits of it could actually be applied early. This series consists only of those parts, which do not depend on any new unreleased kernel APIs.

v5 => v6:
- Pass PCIDevice pointer also to kvm_arch_fixup_msi_route()

v4 => v5:
- pci_requester_id() moved back to architecture-independent PCI code.
- Use pci_requester_id() in more places.

v3 => v4:
- Rename msi_requester_id() to pci_requester_id() and move from MSI to PCI code

v2 => v3:
- Use official "requester ID" denotion everywhere. Renamed getter function and MemTxAttrs field.

v1 => v2:
- Improved commit messages, more explanations
- msi_device_id() function made architecture-specific

Pavel Fedin (3):
kvm: Make KVM_CAP_SIGNAL_MSI globally available hw/pci: Introduce pci_requester_id()
kvm: Pass PCI device pointer to MSI routing functions

 hw/i386/kvm/pci-assign.c | 11 ++++++-----
 hw/pci/msi.c             |  2 +-
 hw/pci/pcie_aer.c        |  2 +-
 hw/vfio/pci.c            | 11 ++++++-----
 hw/virtio/virtio-pci.c   |  5 +++--
 include/exec/memattrs.h  |  4 ++--
 include/hw/pci/pci.h     |  5 +++++
 include/sysemu/kvm.h     | 16 +++++++++++++---
 kvm-all.c                | 19 ++++++++++---------
 kvm-stub.c               |  5 +++--
 target-arm/kvm.c         |  2 +-
 target-i386/kvm.c        |  2 +-
 target-mips/kvm.c        |  2 +-
 target-ppc/kvm.c         |  2 +-
 target-s390x/kvm.c       |  2 +-
 15 files changed, 55 insertions(+), 35 deletions(-)
Signature · 1 line
2.4.4