]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commit
passthrough: use devfn instead of slots as the unit for pass-through
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 25 Jun 2009 17:30:25 +0000 (18:30 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 25 Jun 2009 17:30:25 +0000 (18:30 +0100)
commit7551a514dd944a5155747071135bac11deb61c43
treefc77a6058d4e8e8e617692babc0d060b7390e7a3
parentec5e52d5cb2e6f8851c345b7c3095fe2030fff9c
passthrough: use devfn instead of slots as the unit for pass-through

This is part of support for multi-function PCI devices in guests

Instead of reading a slot number from xend, read a devfn.
This and subsequent other changes will allow xend to ask
for more than one function to be inserted into a single slot -
by specifying which function of the slot should be used.

This is a minimal patch for this change. A subsequent
patch that has a lot of noise to rename slot to devfn follows.

This patch breaks compatibility with xend and corresponding
patches to xend are required.

Cc: Dexuan Cui <dexuan.cui@intel.com>
Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
[3/8; cross-compatibility issues with xen-unstable.hg]
hw/pass-through.c
hw/pci.h
hw/piix4acpi.c