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

[Xen-devel] [PATCH v2 00/12] pci: expand usage of pci_sbdf_t


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Thu, 6 Jun 2019 11:01:34 +0200
  • Authentication-results: esa1.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: Thu, 06 Jun 2019 09:02:06 +0000
  • Ironport-sdr: wNvL4aVW+e/EtW93cqlMYlldtEA1uqDfXodfGEIl8hYuKWiYh5fRfLEDotOXZuZtWPtltcBjZU vzfJIwwu8AFLUqWUZeNqQ3GMzNkIEhIGyk+YTYokmCamDfPglinxc2/w2c/hpxS5TndDMHeCXc Y9v9AkDVJwD8v4foRcAjqli5930VRUzDuhujJPJlEOt6h/hHYdGbmmOYYuCnbSUemMvy+xnIgm M6E9lclEvrAnXMnM+HIWisIt9kIso2f+E6pNTnhxEQTuS5eVEv2kL7lQYVLhKtT+mK/YseoqBl UG0=
  • 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 (12):
  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                     |  46 ++--
 xen/include/xen/pci.h                       |  50 ++---
 37 files changed, 574 insertions(+), 749 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®.