device-assignment: Move PCI capabilities to match physical hardware
commita37feb7175532f8fa679e22c501170877befcded
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 19 Nov 2010 23:20:18 +0000 (19 16:20 -0700)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 30 Nov 2010 16:17:32 +0000 (30 14:17 -0200)
tree5b3dd9238ee6bfd1344925b18cbf82f3ada33be9
parent355f2bf993379398251fddbdc8b1c8cc123a570e
device-assignment: Move PCI capabilities to match physical hardware

Now that common PCI code doesn't have a hangup on capabilities
being contiguous, move assigned device capabilities to match
their offset on physical hardware.  This helps for drivers that
assume a capability configuration and don't bother searching.

We can also remove several calls to assigned_dev_pci_read_* because
we're overlaying the capability at the same location as the initial
copy we made of config space.  We can therefore just use pci_get_*.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
hw/device-assignment.c