bus/pci: support hot-unplug handler
authorJeff Guo <jia.guo@intel.com>
Mon, 15 Oct 2018 11:27:22 +0000 (19:27 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 15 Oct 2018 20:16:48 +0000 (22:16 +0200)
commitb01dc3da88454cf8bb3f7a364595c94c137f2463
tree19b71e526b3696f372bc0a75258a474d128005f0
parenta8a279da63d1dde2e66b3fdb47a80bb96c3dd98c
bus/pci: support hot-unplug handler

This patch implements the ops to handle hot-unplug on the PCI bus.
For UIO PCI, it could avoids BARs read/write errors by creating a
new dummy memory to remap the memory where the failure is. For VFIO
or other kernel driver, it could specific implement function to handle
hot-unplug case by case.

Signed-off-by: Jeff Guo <jia.guo@intel.com>
Acked-by: Shaopeng He <shaopeng.he@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
drivers/bus/pci/pci_common.c
drivers/bus/pci/pci_common_uio.c
drivers/bus/pci/private.h