Skip to content

MSI-X mask support for assigned device

Sheng Yang kvm 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 14 repliesIn review
  2. v35 patches 22 repliesSuperseded
  3. v28 patches 55 repliesSuperseded

Changes in v4 from the cover letter

1. Re-design the userspace API.
2. Add big-endian support for msix_mmio_read/write()(untested!)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7PCI: MSI: Move MSI-X entry definition to pci_regs.hdrivers/pci/msi.h include/linux/pci_regs.h+7 -60 replies
2/7PCI: Add mask bit definition for MSI-X tabledrivers/pci/msi.c include/linux/pci_regs.h+4 -22 replies
3/7KVM: Move struct kvm_io_device to kvm_host.hinclude/linux/kvm_host.h virt/kvm/iodev.h+24 -240 replies
4/7KVM: Add kvm_get_irq_routing_entry() funcinclude/linux/kvm_host.h virt/kvm/irq_comm.c+22 -00 replies
5/7KVM: assigned dev: Clean up assigned_device's flaginclude/linux/kvm_host.h virt/kvm/assigned-dev.c+5 -30 replies
6/7KVM: assigned dev: MSI-X mask supportarch/x86/kvm/x86.c include/linux/kvm.h include/linux/kvm_host.h +1 more+353 -110 replies
7/7KVM: assigned dev: Big endian support for MSI-X MMIOvirt/kvm/assigned-dev.c+4 -32 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchHidetoshi SetoMatthew Wilcox
1/7R-b R-b
2/7R-b
3/7
4/7
5/7
6/7
7/7

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

Read the v4 thread

Cover letter [PATCH 0/7 v4] MSI-X mask support for assigned device

Change from v3:
1. Re-design the userspace API.
2. Add big-endian support for msix_mmio_read/write()(untested!)

Change from v2:
1. Move all mask handling to kernel, and userspace has to access it using API.
2. Discard userspace mask bit operation API.

Sheng Yang (7):
PCI: MSI: Move MSI-X entry definition to pci_regs.h
PCI: Add mask bit definition for MSI-X table
KVM: Move struct kvm_io_device to kvm_host.h
KVM: Add kvm_get_irq_routing_entry() func
KVM: assigned dev: Clean up assigned_device's flag
KVM: assigned dev: MSI-X mask support
KVM: assigned dev: Big endian support for MSI-X MMIO

 arch/x86/kvm/x86.c       |    1 +
 drivers/pci/msi.c        |    5 +-
 drivers/pci/msi.h        |    6 -
 include/linux/kvm.h      |   32 +++++
 include/linux/kvm_host.h |   31 +++++
 include/linux/pci_regs.h |    8 +
 virt/kvm/assigned-dev.c  |  324 +++++++++++++++++++++++++++++++++++++++++++++-
 virt/kvm/iodev.h         |   25 +----
 virt/kvm/irq_comm.c      |   20 +++
 9 files changed, 416 insertions(+), 36 deletions(-)