[lkml]   [2020]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH v3 0/3] PCI: hv: Generify pci-hyperv.c

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:

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

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!


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(-)


 \ /
  Last update: 2020-02-10 04:41    [W:0.148 / U:1.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site