Skip to content

PCI: hv: Generify pci-hyperv.c

Boqun Feng linux-arm-kernel linux-hyperv linux-pci lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 11 repliesIn review
  2. v23 patches 9 repliesSuperseded
  3. v12 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PCI: hv: Move hypercall related definitions into tlfs headerarch/x86/include/asm/hyperv-tlfs.h drivers/pci/controller/pci-hyperv.c+3 -61 reply
2/3PCI: hv: Move retarget related structures into tlfs headerarch/x86/include/asm/hyperv-tlfs.h drivers/pci/controller/pci-hyperv.c+33 -323 replies
3/3PCI: hv: Introduce hv_msi_entryarch/x86/include/asm/hyperv-tlfs.h arch/x86/include/asm/mshyperv.h drivers/pci/controller/pci-hyperv.c+18 -43 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAndrew MurrayDexuan Cui
1/3R-b R-b
2/3R-b
3/3R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/3] PCI: hv: Generify pci-hyperv.c

Hi,

This is the first part for virtual PCI support of Hyper-V guest on ARM64. The whole patchset doesn't have any functional change, but only refactors the pci-hyperv.c code to make it more arch-independent.

Previous version:
v1: https://lore.kernel.org/lkml/[email protected]/
v2: https://lore.kernel.org/linux-arm-kernel/[email protected]/

Changes since v2:

* Rebased on 5.6-rc1

* Reword commit logs as per Andrew's suggestion.

* It makes more sense to have a generic interface to set the whole
msi_entry rather than only the "address" field. So change hv_set_msi_address_from_desc() to hv_set_msi_entry_from_desc(). Additionally, make it an inline function as per the suggestion of Andrew and Thomas.

* Add the missing comment saying the partition_id of
hv_retarget_device_interrupt must be self.

* Add the explanation for why "__packed" is needed for TLFS
structures.

I've done compile and boot test of this patchset, also done some tests with a pass-through NVMe device.

Suggestions and comments are welcome!

Regards,
Boqun

Boqun Feng (3):
PCI: hv: Move hypercall related definitions into tlfs header
PCI: hv: Move retarget related structures into tlfs header
PCI: hv: Introduce hv_msi_entry

 arch/x86/include/asm/hyperv-tlfs.h  | 41 +++++++++++++++++++++++++++
 arch/x86/include/asm/mshyperv.h     |  8 ++++++
 drivers/pci/controller/pci-hyperv.c | 43 ++---------------------------
 3 files changed, 52 insertions(+), 40 deletions(-)
Signature · 1 line
2.24.1