pci: set PCI multi-function bit appropriately.
authorIsaku Yamahata <yamahata@valinux.co.jp>
Wed, 23 Jun 2010 07:15:33 +0000 (16:15 +0900)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 11 Jul 2010 17:01:02 +0000 (20:01 +0300)
commit80ae63d3661da26d00f04629be488538b76a4f1d
treeab1f6b5b586bb2aec9b54115515cbb3bacf6926c
parentc01a816884699fa75e6ac51e54b6c68604bd4aa3
pci: set PCI multi-function bit appropriately.

Set PCI multi-function bit according to multifunction property.
PCI address, devfn ,is exported to users as addr property,
so users can populate pci function(PCIDevice in qemu)
at arbitrary devfn.
It means each function(PCIDevice) don't know whether pci device
(PCIDevice[8]) is multi function or not.
So this patch allows user to set multifunction bit via property
and checks whether multifunction bit is set correctly.

Cc: Juan Quintela <quintela@redhat.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/apb_pci.c
hw/pci.c
hw/piix4.c
hw/piix_pci.c