Skip to content

pci: pci_register_bar_simple

Avi Kivity qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10pci: add pci_register_bar_simple() APIhw/pci.c hw/pci.h+20 -00 replies
2/10rtl8139: convert to pci_register_bar_simple()hw/rtl8139.c+1 -100 replies
3/10cirrus-vga: convert to pci_register_bar_simple()hw/cirrus_vga.c+2 -110 replies
4/10eepro100: convert to pci_register_bar_simple()hw/eepro100.c+13 -300 replies
5/10ich/ahci: convert to pci_register_bar_simple()hw/ide/ahci.c hw/ide/ahci.h hw/ide/ich.c+1 -141 reply
6/10hda-intel: convert to pci_register_bar_simple()hw/intel-hda.c+1 -100 replies
7/10hda-intel: convert to pci_register_bar_simple() (partial)hw/lsi53c895a.c+1 -110 replies
8/10pcnet-pci: convert to pci_register_bar_simple()hw/pcnet-pci.c+1 -150 replies
9/10usb-ohci: convert to pci_register_bar_simple()hw/usb-ohci.c+1 -90 replies
10/10wdt_i6300esb: convert to pci_register_bar_simple()hw/wdt_i6300esb.c+15 -270 replies

Reviews trailers per patch

None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMichael S. TsirkinAnthony Liguori
SeriesA-b A-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/10] pci: pci_register_bar_simple

Many PCI BARs that use the memory address space map a single MMIO region into the entire BAR range. Introduce an API pci_register_bar_simple() for that use case, and convert all users where this can be done trivially.

This will reduce the work required to introduce a PCI memory API; it's also a nice code reduction in its own right.

Avi Kivity (10):
pci: add pci_register_bar_simple() API
rtl8139: convert to pci_register_bar_simple()
cirrus-vga: convert to pci_register_bar_simple()
eepro100: convert to pci_register_bar_simple() ich/ahci: convert to pci_register_bar_simple()
hda-intel: convert to pci_register_bar_simple()
hda-intel: convert to pci_register_bar_simple() (partial)
pcnet-pci: convert to pci_register_bar_simple()
usb-ohci: convert to pci_register_bar_simple()
wdt_i6300esb: convert to pci_register_bar_simple()

 hw/cirrus_vga.c   |   13 ++-----------
 hw/eepro100.c     |   43 +++++++++++++------------------------------
 hw/ide/ahci.c     |    9 ---------
 hw/ide/ahci.h     |    3 ---
 hw/ide/ich.c      |    3 +--
 hw/intel-hda.c    |   11 +----------
 hw/lsi53c895a.c   |   12 +-----------
 hw/pci.c          |   17 +++++++++++++++++
 hw/pci.h          |    3 +++
 hw/pcnet-pci.c    |   16 +---------------
 hw/rtl8139.c      |   11 +----------
 hw/usb-ohci.c     |   10 +---------
 hw/wdt_i6300esb.c |   42 +++++++++++++++---------------------------
 13 files changed, 56 insertions(+), 137 deletions(-)