iommu/vt-d: Change scope lists to struct device, bus, devfn
authorDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 7 Mar 2014 15:08:36 +0000 (15:08 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 24 Mar 2014 14:05:08 +0000 (14:05 +0000)
commit832bd858674023b2415c7585db3beba345ef807f
treef45c9360a2ff71957f2ac3f7a4d83c91e4d7841f
parent07cb52ff6aadac0ad68b29be2ef73dba3111c5ec
iommu/vt-d: Change scope lists to struct device, bus, devfn

It's not only for PCI devices any more, and the scope information for an
ACPI device provides the bus and devfn so that has to be stored here too.

It is the device pointer itself which needs to be protected with RCU,
so the __rcu annotation follows it into the definition of struct
dmar_dev_scope, since we're no longer just passing arrays of device
pointers around.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/iommu/dmar.c
drivers/iommu/intel-iommu.c
include/linux/dmar.h