annotate drivers/pci/Makefile @ 882:8dec4aa9b8b9

PCI pass through: PCIe IO space multiplexing

This is required for more than 16 HVM domain to boot from
PCIe pass through device.

Linux as dom0 exclusively assigns IO space to downstream PCI bridges
and the assignment unit of PCI bridge IO space is 4K. So the only up
to 16 PCIe device can be accessed via IO space within 64K IO ports.
PCI expansion ROM BIOS often uses IO port access to boot from the
device, so on virtualized environment, it means only up to 16 guest
domain can boot from pass-through device.

This patch allows PCIe IO space sharing of pass-through device.
- reassign IO space of PCIe devices specified by
to be shared.
This is implemented as Linux PCI quirk fixup.

The sharing unit is PCIe switch. Ie IO space of the end point
devices under the same switch will be shared. If there are more than
one switches, two areas of IO space will be used.

- And the driver which arbitrates the accesses to the multiplexed PCIe
IO space. Later qemu-dm will use this.

IO port of IO shared devices can't be accessed from dom0 Linux device
driver. But this wouldn't be a big issue because PCIe specification
discourages the use of IO space and recommends that IO space should be
used only for bootable device with ROM code. OS device driver should
work without IO space access.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Keir Fraser <keir.fraser@citrix.com>
date Thu May 28 09:57:49 2009 +0100 (2009-05-28)
parents a3ad7a5f2dcd
children c7c92f868aa1
rev   line source
ian@0 1 #
ian@0 2 # Makefile for the PCI bus specific drivers.
ian@0 3 #
ian@0 4
ian@0 5 obj-y += access.o bus.o probe.o remove.o pci.o quirks.o \
keir@701 6 pci-driver.o search.o pci-sysfs.o rom.o setup-res.o
ian@0 7 obj-$(CONFIG_PROC_FS) += proc.o
keir@769 8 obj-$(CONFIG_PCI_GUESTDEV) += guestdev.o
keir@882 9 obj-$(CONFIG_PCI_IOMULTI) += iomulti.o
ian@0 10
ian@0 11 # Build PCI Express stuff if needed
ian@0 12 obj-$(CONFIG_PCIEPORTBUS) += pcie/
ian@0 13
ian@0 14 obj-$(CONFIG_HOTPLUG) += hotplug.o
ian@0 15
ian@0 16 # Build the PCI Hotplug drivers if we were asked to
ian@0 17 obj-$(CONFIG_HOTPLUG_PCI) += hotplug/
ian@0 18
keir@822 19 obj-$(CONFIG_PCI_IOV) += iov.o
keir@822 20
ian@0 21 #
ian@0 22 # Some architectures use the generic PCI setup functions
ian@0 23 #
ian@0 24 obj-$(CONFIG_X86) += setup-bus.o
ian@0 25 obj-$(CONFIG_ALPHA) += setup-bus.o setup-irq.o
ian@0 26 obj-$(CONFIG_ARM) += setup-bus.o setup-irq.o
ian@0 27 obj-$(CONFIG_PARISC) += setup-bus.o
ian@0 28 obj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o
ian@0 29 obj-$(CONFIG_PPC32) += setup-irq.o
ian@0 30 obj-$(CONFIG_PPC64) += setup-bus.o
ian@0 31 obj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o
ian@0 32 obj-$(CONFIG_X86_VISWS) += setup-irq.o
ian@0 33
ian@0 34 msiobj-y := msi.o msi-apic.o
ian@0 35 msiobj-$(CONFIG_IA64_GENERIC) += msi-altix.o
ian@0 36 msiobj-$(CONFIG_IA64_SGI_SN2) += msi-altix.o
ian@0 37 obj-$(CONFIG_PCI_MSI) += $(msiobj-y)
ian@0 38
ian@0 39 #
ian@0 40 # ACPI Related PCI FW Functions
ian@0 41 #
ian@0 42 obj-$(CONFIG_ACPI) += pci-acpi.o
ian@0 43
ian@0 44 # Cardbus & CompactPCI use setup-bus
ian@0 45 obj-$(CONFIG_HOTPLUG) += setup-bus.o
ian@0 46
ian@0 47 ifndef CONFIG_X86
ian@0 48 obj-y += syscall.o
ian@0 49 endif
ian@0 50
ian@0 51 ifeq ($(CONFIG_PCI_DEBUG),y)
ian@0 53 endif