Re: [PATCH 21/33] iommu/vt-d: Make get_domain_for_dev() take struct device

2014-04-14 Thread Alex Williamson
On Fri, 2014-03-21 at 17:19 +, David Woodhouse wrote: Signed-off-by: David Woodhouse david.woodho...@intel.com --- drivers/iommu/intel-iommu.c | 75 ++--- 1 file changed, 36 insertions(+), 39 deletions(-) diff --git

Re: [PATCH 21/33] iommu/vt-d: Make get_domain_for_dev() take struct device

2014-04-14 Thread Woodhouse, David
On Mon, 2014-04-14 at 15:22 -0600, Alex Williamson wrote: + if (dev_tmp) { + if (pci_is_pcie(dev_tmp)) { + bridge_bus = dev_tmp-subordinate-number; + bridge_devfn = 0; + } else {

Re: [PATCH 21/33] iommu/vt-d: Make get_domain_for_dev() take struct device

2014-04-14 Thread Alex Williamson
On Mon, 2014-04-14 at 21:40 +, Woodhouse, David wrote: On Mon, 2014-04-14 at 15:22 -0600, Alex Williamson wrote: + if (dev_tmp) { + if (pci_is_pcie(dev_tmp)) { + bridge_bus = dev_tmp-subordinate-number; +

[PATCH 21/33] iommu/vt-d: Make get_domain_for_dev() take struct device

2014-03-21 Thread David Woodhouse
Signed-off-by: David Woodhouse david.woodho...@intel.com --- drivers/iommu/intel-iommu.c | 75 ++--- 1 file changed, 36 insertions(+), 39 deletions(-) diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 741fb1d..05c5214 100644 ---