]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commit
passthrough: Add AUTO_PHP_DEVFN_MULTI
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 25 Jun 2009 17:32:01 +0000 (18:32 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 25 Jun 2009 17:32:01 +0000 (18:32 +0100)
commitd2ff5da4b888092a22189e91d25a507c1ce79a32
tree11212b77afc1a1ee69d854f896c54794dedae389
parentf3460ff8f6c53f822c00556c64e5cdc65cf87724
passthrough: Add AUTO_PHP_DEVFN_MULTI

Up until now there has been a signle magic value that xend can pass to
qemu-xen to signify that qemu-xen should choose a devfn for a pass-through
function.

When supporting multi-function devices in guests, it is useful for xend to
be able to sepcify if a function is to appear in a guest as a
single-function deveice, or as part of a multi-function device.

By adding AUTO_PHP_DEVFN_MULTI to suplement the existing AUTO_PHP_DEVFN,
this patch achieves that goal.

This patch does not break compatibility with xend as the value chosen for
AUTO_PHP_DEVFN_MULTI could never validly be sent by xend up until now.
However, there is a companion change to xend in order to make use of this
feature.

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