aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCao jin <caoj.fnst@cn.fujitsu.com>2015-10-28 14:20:31 +0800
committerMichael S. Tsirkin <mst@redhat.com>2015-10-29 11:17:53 +0200
commit3f1e1478db2d67098d98f2c3acf5a4946b7fb643 (patch)
treea7d22f8398b20e1b3cf028b870870b91b54fab22 /include
parent0d1c7d88ad909c5b2bd86211a9fe8abf5c74993b (diff)
downloadqemu-3f1e1478db2d67098d98f2c3acf5a4946b7fb643.zip
qemu-3f1e1478db2d67098d98f2c3acf5a4946b7fb643.tar.gz
qemu-3f1e1478db2d67098d98f2c3acf5a4946b7fb643.tar.bz2
enable multi-function hot-add
Enable PCIe device multi-function hot-add, just ensure function 0 is added last, then driver will get the notification to scan the slot. Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/pci/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
index f5e7fd8..379b6e1 100644
--- a/include/hw/pci/pci.h
+++ b/include/hw/pci/pci.h
@@ -397,6 +397,7 @@ void pci_for_each_bus_depth_first(PCIBus *bus,
void *(*begin)(PCIBus *bus, void *parent_state),
void (*end)(PCIBus *bus, void *state),
void *parent_state);
+PCIDevice *pci_get_function_0(PCIDevice *pci_dev);
/* Use this wrapper when specific scan order is not required. */
static inline