Skip to content

Commit 1196c2f

Browse files
committed
iommu/vt-d: Only remove domain when device is removed
This makes sure any RMRR mappings stay in place when the driver is unbound from the device. Signed-off-by: Joerg Roedel <jroedel@suse.de> Tested-by: Jerry Hoemann <jerry.hoemann@hp.com>
1 parent 599bad3 commit 1196c2f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/iommu/intel-iommu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3865,8 +3865,7 @@ static int device_notifier(struct notifier_block *nb,
38653865
if (iommu_dummy(dev))
38663866
return 0;
38673867

3868-
if (action != BUS_NOTIFY_UNBOUND_DRIVER &&
3869-
action != BUS_NOTIFY_DEL_DEVICE)
3868+
if (action != BUS_NOTIFY_REMOVED_DEVICE)
38703869
return 0;
38713870

38723871
domain = find_domain(dev);

0 commit comments

Comments
 (0)