[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v3 00/13] pci: expand usage of pci_sbdf_t


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Fri, 7 Jun 2019 11:22:19 +0200
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@xxxxxxxxxx; spf=SoftFail smtp.mailfrom=roger.pau@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Delivery-date: Fri, 07 Jun 2019 09:23:05 +0000
  • Ironport-sdr: TcE+CbmEK0b2OwKjOetPd5k2TB74xkovIyBfDXBfXNS2CEJKvK1ipS6J1hr9lM7xsWLokmk1ei Oioa4BJpqp0348YdqT9yrEDW5flTeEY2SICqI9iVN5NQq8srGVqzi0HOmwTMFUIXiUUYMvV7vA Hxo9SzdTS9ONswI3ev/4Rga5yEkdWIhQbQClfuN5NrK9HRyaJ6lig+qMWRdZBmzgI68IaDIPnG 8S/XCQb2lc8qCmg7TUwmhzN6wWCOdqBilEiblpTeixE5PKiBRzNO4eQ5kyuCH2eCIDueUu7fqC FUo=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

IMO pci_sbdf_t it's nicer to use than passing around a sbdf in multiple
fields. However it's hard to expand the usage of pci_sbdf_t in the code
base without changing some of the core pci functions and the pci_dev
struct fields, hence this patch set.

Note there's still more low hanging fruit that could benefit from
switching to pci_sbdf_t, this patch series just changes some of the more
core pci functions to use pci_sbdf_t.

This series should not introduce any functional changes.

Roger Pau Monne (13):
  pci: rename func field to fn
  pci: introduce a devfn field to pci_sbdf_t
  pci: introduce a pci_sbdf_t field to pci_dev
  pci: make PCI_SBDF return a pci_sbdf_t
  pci: make PCI_SBDF2 return a pci_sbdf_t
  pci: make PCI_SBDF3 return a pci_sbdf_t
  pci: switch pci_conf_read8 to use pci_sbdf_t
  pci: switch pci_conf_read16 to use pci_sbdf_t
  pci: switch pci_conf_read32 to use pci_sbdf_t
  pci: switch pci_conf_write8 to use pci_sbdf_t
  pci: switch pci_conf_write16 to use pci_sbdf_t
  pci: switch pci_conf_write32 to use pci_sbdf_t
  print: introduce a format specifier for pci_sbdf_t

 docs/misc/printk-formats.txt                |   5 +
 xen/arch/x86/cpu/amd.c                      |  15 +-
 xen/arch/x86/dmi_scan.c                     |   6 +-
 xen/arch/x86/hvm/vmsi.c                     |  10 +-
 xen/arch/x86/mm.c                           |   2 +-
 xen/arch/x86/msi.c                          | 203 ++++++++----------
 xen/arch/x86/oprofile/op_model_athlon.c     |  10 +-
 xen/arch/x86/x86_64/mmconf-fam10h.c         |   8 +-
 xen/arch/x86/x86_64/mmconfig-shared.c       |  14 +-
 xen/arch/x86/x86_64/pci.c                   |  98 +++------
 xen/common/compat/memory.c                  |   4 +-
 xen/common/memory.c                         |   4 +-
 xen/common/vsprintf.c                       |  18 ++
 xen/drivers/acpi/reboot.c                   |   6 +-
 xen/drivers/char/ehci-dbgp.c                |  49 +++--
 xen/drivers/char/ns16550.c                  |  71 ++++---
 xen/drivers/passthrough/amd/iommu_acpi.c    |  17 +-
 xen/drivers/passthrough/amd/iommu_cmd.c     |   5 +-
 xen/drivers/passthrough/amd/iommu_detect.c  |   7 +-
 xen/drivers/passthrough/amd/iommu_init.c    |  29 ++-
 xen/drivers/passthrough/amd/iommu_intr.c    |   8 +-
 xen/drivers/passthrough/amd/pci_amd_iommu.c |  25 +--
 xen/drivers/passthrough/ats.h               |   4 +-
 xen/drivers/passthrough/pci.c               | 220 ++++++++------------
 xen/drivers/passthrough/vtd/dmar.c          |  36 ++--
 xen/drivers/passthrough/vtd/intremap.c      |  11 +-
 xen/drivers/passthrough/vtd/iommu.c         |  80 +++----
 xen/drivers/passthrough/vtd/quirks.c        |  81 ++++---
 xen/drivers/passthrough/vtd/utils.c         |   6 +-
 xen/drivers/passthrough/x86/ats.c           |  28 +--
 xen/drivers/pci/pci.c                       |  23 +-
 xen/drivers/video/vga.c                     |  11 +-
 xen/drivers/vpci/header.c                   |  65 ++----
 xen/drivers/vpci/msi.c                      |  13 +-
 xen/drivers/vpci/msix.c                     |  35 ++--
 xen/drivers/vpci/vpci.c                     |  47 ++---
 xen/include/xen/pci.h                       |  50 +++--
 37 files changed, 574 insertions(+), 750 deletions(-)

-- 
2.20.1 (Apple Git-117)


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.