Skip to contentSkip to conversation

pci fixes and cleanups

GIT PULL Michael S. Tsirkin 1 participant 1 message Dec 1, 2009

lore
Share & tools
lore
#0 lore raw

Here is a collection of minor pci related fixes and cleanupsthat has accumulated in my tree. I think some of these make sense for 0.11 as well, I will follow up separately.

The following changes since commit 3098b9fde97a224e803048c83bebeea176966358:
Aurelien Jarno (1):
Revert "vga: do not resize the screen on hw_invalidate"

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git for_anthony

Isaku Yamahata (17):
pci: fix pci_info_device().
pci: move pci_data_{read, write}() declaration from pci.h to pci_host.h
pci: remove pci_addr_to_config() by open code
pci: rename (pci_/pcie_mmcfg_)addr_to_dev
pci: shorten pci_host_{conf, data}_register_xxx function a bit.
pci: remove pci_sub_bus() by open coding.
pci: s/pci_find_host_bus/pci_find_root_bus/g
pci_host: remove unnecessary & 0xff.
pci: kill unnecessary included in pci.c
pci: clean up of pci_init_wmask().
pci: remove some unnecessary comment in pci.h
pci: move typedef, PCIHostState, PCIExpressHost to qemu-common.h.
pci: remove unused constants
pci: clean up of pci_update_mappings()
pci: remove magic number, 256 in pci.c
pci: fix pci_config_get_io_base().
pci: pci bridge related clean up.

Michael S. Tsirkin (9):
pci: pci.h cleanup: move out stuff not in pci.c
pci: simplify (pci_/pcie_mmcfg_)data_read()
pci: split up up pci_update mappings
pci: convert goto into scope in bridge_filter
msix: add helper to unuse all msix entries
virtio: do not reset msix state on soft reset
msix: fix mask bit state after reset
msix: fix reset value for enable bit
msix: clear pending bit of an unused vector

 hw/apb_pci.c       |    5 +-
 hw/apb_pci.h       |    9 +++
 hw/grackle_pci.c   |    8 +-
 hw/lsi53c895a.c    |    2 +
 hw/mips_malta.c    |    2 +
 hw/msix.c          |   48 ++++++++++---
 hw/msix.h          |    1 +
 hw/pc.c            |    5 ++
 hw/pci-hotplug.c   |    4 +-
 hw/pci.c           |  192 +++++++++++++++++++++++++++------------------------
 hw/pci.h           |   50 +-------------
 hw/pci_host.c      |   50 +++++---------
 hw/pci_host.h      |   15 +++--
 hw/pcie_host.c     |   31 ++------
 hw/pcie_host.h     |    4 +-
 hw/piix_pci.c      |    2 +-
 hw/ppc4xx_pci.c    |    2 +-
 hw/ppc_newworld.c  |    1 +
 hw/ppc_oldworld.c  |    1 +
 hw/ppc_prep.c      |    2 +
 hw/ppce500_pci.c   |    4 +-
 hw/prep_pci.c      |    3 +-
 hw/prep_pci.h      |    8 ++
 hw/r2d.c           |    1 +
 hw/realview.c      |    1 +
 hw/sh_pci.c        |    2 +
 hw/sh_pci.h        |    9 +++
 hw/sun4u.c         |    1 +
 hw/unin_pci.c      |   16 ++--
 hw/usb-ohci.c      |    1 +
 hw/usb-ohci.h      |    9 +++
 hw/usb-uhci.c      |    1 +
 hw/usb-uhci.h      |    9 +++
 hw/versatile_pci.c |    1 +
 hw/versatilepb.c   |    1 +
 hw/virtio-pci.c    |   12 ++-
 hw/vmware_vga.c    |    1 +
 hw/vmware_vga.h    |    9 +++
 qemu-common.h      |    2 +
 39 files changed, 290 insertions(+), 235 deletions(-)
 create mode 100644 hw/apb_pci.h
 create mode 100644 hw/prep_pci.h
 create mode 100644 hw/sh_pci.h
 create mode 100644 hw/usb-ohci.h
 create mode 100644 hw/usb-uhci.h
 create mode 100644 hw/vmware_vga.h