Skip to content

PCI: hv: Refactor hv_irq_unmask() to use hv_vpset and cpumask_to_vpset()

Maya Nakamura linux-hyperv linux-pci lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 1 replyIn review
  2. v42 patches 2 repliesSuperseded
  3. v32 patches 7 repliesApplied
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches5 repliesSuperseded
v12 patches4 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PCI: hv: Add __aligned(8) to struct retarget_msi_interruptdrivers/pci/controller/pci-hyperv.c+1 -10 replies
2/3PCI: hv: Replace hv_vp_set with hv_vpsetdrivers/pci/controller/pci-hyperv.c+12 -130 replies
3/3PCI: hv: Refactor hv_irq_unmask() to use cpumask_to_vpset()arch/x86/hyperv/hv_init.c drivers/pci/controller/pci-hyperv.c+18 -210 replies

Reviews trailers per patch

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

PatchMichael KelleyVitaly Kuznetsov
1/3
2/3R-b R-b T-b
3/3R-b R-b T-b

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

Read the v5 thread

Cover letter [PATCH v5 0/3] PCI: hv: Refactor hv_irq_unmask() to use hv_vpset and cpumask_to_vpset()

This patchset removes a duplicate definition of VP set (hv_vp_set) and uses the common definition (hv_vpset) that is used in other places. It changes the order of the members in struct hv_pcibus_device due to flexible array in hv_vpset.

It also removes the duplicate implementation of cpumask_to_vpset(), uses the shared implementation, and exports hv_max_vp_index, which is required by cpumask_to_vpset().

It adds __aligned(8) to struct retarget_msi_interrupt because Hyper-V requires that hypercall arguments be aligned on an 8 byte boundary. This is now a new patch, separate from one of the previous patches.

Maya Nakamura (3):
PCI: hv: Add __aligned(8) to struct retarget_msi_interrupt
PCI: hv: Replace hv_vp_set with hv_vpset
PCI: hv: Refactor hv_irq_unmask() to use cpumask_to_vpset()

 arch/x86/hyperv/hv_init.c           |  1 +
 drivers/pci/controller/pci-hyperv.c | 61 +++++++++++++----------------
 2 files changed, 29 insertions(+), 33 deletions(-)
Signature · 1 line
2.17.1