Skip to content

PCI bus support

Alexander Gordeev kvm 8 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v11 Latest12 patches 3 repliesIn review
  2. v912 patches 12 repliesSuperseded
  3. v812 patches 9 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v713 patches30 repliesSuperseded
v512 patches14 repliesSuperseded
v412 patches42 repliesSuperseded
v25 patches7 repliesSuperseded
v111 patches19 repliesSuperseded

Changes since v9 from the cover letter

- all PCI configuration space accessors added;
- data size in PCI configuration space accessors fixed;
- PCI bus parity checking enabled;
- coding style errors fixed;

Patches in v11 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12pci: Fix coding style in generic PCI fileslib/pci.c lib/pci.h+22 -190 replies
2/12pci: x86: Rename pci_config_read() to pci_config_readl()lib/pci.c lib/x86/asm/pci.h+5 -50 replies
3/12pci: Add 'extern' to public function declarationslib/pci.h+4 -40 replies
4/12pci: x86: Add remaining PCI configuration space accessorslib/pci.c lib/x86/asm/pci.h+38 -50 replies
5/12pci: Factor out pci_bar_get()lib/pci.c+8 -30 replies
6/12pci: Rework pci_bar_addr()lib/pci.c lib/pci.h lib/x86/asm/pci.h+90 -60 replies
7/12pci: Add pci_bar_set_addr()lib/pci.c lib/pci.h x86/vmexit.c+15 -40 replies
8/12pci: Add pci_dev_exists()lib/pci.c lib/pci.h+7 -00 replies
9/12pci: Add pci_print()lib/pci.c lib/pci.h+92 -00 replies
10/12pci: Add generic ECAM host supportlib/asm-generic/pci-host-bridge.h lib/pci-host-generic.c lib/pci-host-generic.h +2 more+401 -41 reply
11/12pci: Add pci-testdev PCI bus test devicelib/pci-testdev.c lib/pci.h+199 -00 replies
12/12arm/arm64: pci: Add pci-testdev PCI device operation testarm/Makefile.common arm/pci-test.c arm/run +3 more+44 -20 replies

Reviews trailers per patch

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

PatchAndrew JonesThomas Huth
1/12R-b R-b
2/12R-b R-b
3/12R-b
4/12R-b R-b
5/12R-b R-b
6/12R-b R-b
7/12R-b
8/12R-b
9/12R-b
10/12R-b
11/12R-b
12/12R-b

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

Read the v11 thread

Cover letter [kvm-unit-tests PATCH v11 00/12] PCI bus support

This is 11th version of PCI support.

Changes since v9:
- all PCI configuration space accessors added;
- data size in PCI configuration space accessors fixed;
- PCI bus parity checking enabled;
- coding style errors fixed;

Sources are avalable at:
https://github.com/a-gordeev/kvm-unit-tests.git pci-testdev-v11

Cc Thomas Huth <[email protected]>
Cc Andrew Jones <[email protected]>
Cc Peter Xu <[email protected]>

Alexander Gordeev (12):
pci: Fix coding style in generic PCI files
pci: x86: Rename pci_config_read() to pci_config_readl()
pci: Add 'extern' to public function declarations
pci: x86: Add remaining PCI configuration space accessors
pci: Factor out pci_bar_get()
pci: Rework pci_bar_addr()
pci: Add pci_bar_set_addr()
pci: Add pci_dev_exists()
pci: Add pci_print()
pci: Add generic ECAM host support
pci: Add pci-testdev PCI bus test device arm/arm64: pci: Add pci-testdev PCI device operation test

 arm/Makefile.common               |   6 +-
 arm/pci-test.c                    |  27 ++++
 arm/run                           |   7 +-
 arm/unittests.cfg                 |   4 +
 lib/arm/asm/pci.h                 |   1 +
 lib/arm64/asm/pci.h               |   1 +
 lib/asm-generic/pci-host-bridge.h |  28 ++++
 lib/pci-host-generic.c            | 318 ++++++++++++++++++++++++++++++++++++++
 lib/pci-host-generic.h            |  46 ++++++
 lib/pci-testdev.c                 | 192 +++++++++++++++++++++++
 lib/pci.c                         | 212 ++++++++++++++++++++++---
 lib/pci.h                         |  43 +++++-
 lib/x86/asm/pci.h                 |  46 +++++-
 x86/vmexit.c                      |   4 +-
 14 files changed, 904 insertions(+), 31 deletions(-)
 create mode 100644 arm/pci-test.c
 create mode 100644 lib/arm/asm/pci.h
 create mode 100644 lib/arm64/asm/pci.h
 create mode 100644 lib/asm-generic/pci-host-bridge.h
 create mode 100644 lib/pci-host-generic.c
 create mode 100644 lib/pci-host-generic.h
 create mode 100644 lib/pci-testdev.c
Signature · 1 line
1.8.3.1