diff options
| author | Cao jin | 2015-10-28 07:20:31 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2015-10-29 10:17:53 +0100 |
| commit | 3f1e1478db2d67098d98f2c3acf5a4946b7fb643 (patch) | |
| tree | a7d22f8398b20e1b3cf028b870870b91b54fab22 /include | |
| parent | remove function during multi-function hot-add (diff) | |
| download | qemu-3f1e1478db2d67098d98f2c3acf5a4946b7fb643.tar.gz qemu-3f1e1478db2d67098d98f2c3acf5a4946b7fb643.tar.xz qemu-3f1e1478db2d67098d98f2c3acf5a4946b7fb643.zip | |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h index f5e7fd818a..379b6e1a45 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 |
