Skip to content
Commit 99dcaded authored by Fenghua Yu's avatar Fenghua Yu Committed by David Woodhouse
Browse files

intel-iommu: Support PCIe hot-plug



To support PCIe hot plug in IOMMU, we register a notifier to respond to device
change action.

When the notifier gets BUS_NOTIFY_UNBOUND_DRIVER, it removes the device
from its DMAR domain.

A hot added device will be added into an IOMMU domain when it first does IOMMU
op. So there is no need to add more code for hot add.

Without the patch, after a hot-remove, a hot-added device on the same
slot will not work.

Signed-off-by: default avatarFenghua Yu <fenghua.yu@intel.com>
Tested-by: default avatarYinghai Lu <yinghai@kernel.org>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent e8bb910d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment