x86/PCI: VMD: Attach VMD resources to parent domain's resource tree
authorJon Derrick <jonathan.derrick@intel.com>
Wed, 24 Feb 2016 17:06:37 +0000 (10:06 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Mar 2016 20:57:38 +0000 (14:57 -0600)
commit2c2c5c5cd213aea38c850bb6edc9b7f77f29802f
tree18565e7cb92ad8f54796e21b7b8b86581ff0f3dd
parentd068c350c0486ba9011abb6f91cdc0c12b522155
x86/PCI: VMD: Attach VMD resources to parent domain's resource tree

Attach the new VMD domain's resources to the VMD device's resources.  This
allows /proc/iomem to display a more complete picture.

Before:
  c0000000-c1ffffff : 0000:5d:05.5
  c2000000-c3ffffff : 0000:5d:05.5
    c2010000-c2013fff : nvme
  c4000000-c40fffff : 0000:5d:05.5

After:
  c0000000-c1ffffff : 0000:5d:05.5
  c2000000-c3ffffff : 0000:5d:05.5
    c2000000-c3ffffff : VMD MEMBAR1
      c2000000-c22fffff : PCI Bus 10000:01
        c2000000-c200ffff : 10000:01:00.0
        c2010000-c2013fff : 10000:01:00.0
          c2010000-c2013fff : nvme
      c2300000-c24fffff : PCI Bus 10000:01
  c4000000-c40fffff : 0000:5d:05.5
    c4002000-c40fffff : VMD MEMBAR2

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
arch/x86/pci/vmd.c