Skip to content

Support PCI BAR configuration

Julien Thierry kvm kvmarm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16Makefile: Only compile vesa for archs that need itMakefile+2 -11 reply
2/16brlock: Always pass argument to br_read_lock/unlockioport.c mmio.c+4 -41 reply
3/16brlock: fix build with KVM_BRLOCK_DEBUGinclude/kvm/brlock.h include/kvm/kvm.h kvm.c+12 -61 reply
4/16pci: Fix BAR resource sizing arbitrationpci.c+48 -31 reply
5/16ioport: pci: Move port allocations to PCI deviceshw/pci-shmem.c hw/vesa.c include/kvm/ioport.h +5 more+20 -272 replies
6/16pci: Fix ioport allocation sizehw/pci-shmem.c hw/vesa.c include/kvm/ioport.h +2 more+12 -131 reply
7/16arm/pci: Fix PCI IO regionarm/include/arm-common/pci.h arm/kvm.c arm/pci.c+22 -30 replies
8/16arm/pci: Do not use first PCI IO space bytes for devicesarm/pci.c+3 -02 replies
9/16brlock: Use rwlock instead of pauseinclude/kvm/brlock.h include/kvm/kvm.h+0 -130 replies
10/16ref_cnt: Add simple ref counting APIinclude/kvm/ref_cnt.h+53 -00 replies
11/16mmio: Allow mmio callbacks to be called without lockingmmio.c+22 -40 replies
12/16ioport: Allow ioport callbacks to be called without lockinginclude/kvm/ioport.h ioport.c+45 -240 replies
13/16vfio: Add support for BAR configurationvfio/core.c vfio/pci.c+82 -80 replies
14/16virtio/pci: Make memory and IO BARs independentvirtio/pci.c+46 -230 replies
15/16virtio/pci: update virtio mapping when PCI BARs are reconfiguredinclude/kvm/virtio-pci.h virtio/pci.c+144 -100 replies
16/16arm/fdt: Remove PCI probe only propertyarm/fdt.c+0 -10 replies

Reviews trailers per patch

4 of 16 patches have a Reviewed-by or Acked-by.

PatchAndre Przywara
1/16R-b
2/16R-b
3/16R-b
4/16
5/16
6/16R-b
7/16
8/16
9/16
10/16
11/16
12/16
13/16
14/16
15/16
16/16

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

Read the v1 thread

Cover letter [PATCH kvmtool 00/16] Support PCI BAR configuration

Hi,

This series add support for guests writting to PCI BARs. Edk2 does this and is not aware of the "linux,pci-probe-only" property in the chosen node.

- Patches 1 to 3 do miscelaneous fixes
- Patch 4 fixes the way we deal with BAR sizing
- Patches 5 to 8 fixes the allocation/assignment of PCI IO BARs
- Patches 9 to 12 make it possible to remap ioport and mmio regions from vcpu threads, without pausing the entire VM
- Patches 13 to 16 adds the support for writting to BARs

Cheers,

Julien

-->

Julien Thierry (15):
Makefile: Only compile vesa for archs that need it
brlock: Always pass argument to br_read_lock/unlock
brlock: fix build with KVM_BRLOCK_DEBUG
ioport: pci: Move port allocations to PCI devices
pci: Fix ioport allocation size
arm/pci: Fix PCI IO region
arm/pci: Do not use first PCI IO space bytes for devices
brlock: Use rwlock instead of pause
ref_cnt: Add simple ref counting API
mmio: Allow mmio callbacks to be called without locking
ioport: Allow ioport callbacks to be called without locking
vfio: Add support for BAR configuration
virtio/pci: Make memory and IO BARs independent virtio/pci: update virtio mapping when PCI BARs are reconfigured arm/fdt: Remove PCI probe only property

Sami Mujawar (1):
pci: Fix BAR resource sizing arbitration

 Makefile                     |   3 +-
 arm/fdt.c                    |   1 -
 arm/include/arm-common/pci.h |   1 +
 arm/kvm.c                    |   3 +
 arm/pci.c                    |  24 ++++-
 hw/pci-shmem.c               |   3 +-
 hw/vesa.c                    |   4 +-
 include/kvm/brlock.h         |  21 +---
 include/kvm/ioport.h         |   5 -
 include/kvm/kvm.h            |   2 +
 include/kvm/pci.h            |   2 +
 include/kvm/ref_cnt.h        |  53 ++++++++++
 include/kvm/virtio-pci.h     |   1 +
 ioport.c                     |  80 ++++++++--------
 kvm.c                        |   4 +
 mmio.c                       |  30 ++++--
 pci.c                        |  59 +++++++++++-
 vfio/core.c                  |   6 +-
 vfio/pci.c                   |  82 +++++++++++++++-
 virtio/pci.c                 | 223 ++++++++++++++++++++++++++++++++++++-------
 20 files changed, 491 insertions(+), 116 deletions(-)
 create mode 100644 include/kvm/ref_cnt.h

--
1.9.1