device-assignment: Don't use libpci
commita81a1f0a7410976be7dbc9a81524a8640f446ab5
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 21 May 2010 00:27:15 +0000 (20 17:27 -0700)
committerAvi Kivity <avi@redhat.com>
Sun, 23 May 2010 11:07:38 +0000 (23 14:07 +0300)
tree3371af0dbce0a3bcece4acdd5ba2e9f123f10c67
parent2756eeae6bfbe8d37a9ca0f7f66366d887427079
device-assignment: Don't use libpci

We've already got an open fd for PCI config space for the device, we
might as well use it.  This also makes sure that if we're making use of
a privileged file descriptor opened for us, we use it for all accesses
to the device.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
[chrisw: kill pci_dev, configure check for header, narrow header requirement]
Signed-off-by: Chris Wright <chrisw@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
configure
hw/device-assignment.c
hw/device-assignment.h