enable multi-function hot-add
commit3f1e1478db2d67098d98f2c3acf5a4946b7fb643
authorCao jin <caoj.fnst@cn.fujitsu.com>
Wed, 28 Oct 2015 06:20:31 +0000 (28 14:20 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 29 Oct 2015 09:17:53 +0000 (29 11:17 +0200)
treea7d22f8398b20e1b3cf028b870870b91b54fab22
parent0d1c7d88ad909c5b2bd86211a9fe8abf5c74993b
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>
hw/pci/pci.c
hw/pci/pci_host.c
hw/pci/pcie.c
include/hw/pci/pci.h