mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
0d1c7d88ad
commit
3f1e1478db
4 changed files with 64 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue