]> git.proxmox.com Git - qemu.git/commit
vfio-pci: Enable PCIe extended config space
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 24 Jan 2013 00:46:13 +0000 (17:46 -0700)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 29 Jan 2013 23:31:09 +0000 (01:31 +0200)
commit6a659bbff991b0033d1bf1ff71b7d550e0367d99
tree98c5b782a4f171e61a52fd6cca77eb2823f254c0
parent1ec4ba741630699665a6334f3959271da3effec7
vfio-pci: Enable PCIe extended config space

We don't know pre-init time whether the device we're exposing is PCIe
or legacy PCI.  We could ask for it to be specified via a device
option, but that seems like too much to ask of the user.  Instead we
can assume everything will be PCIe, which makes PCI-core allocate
enough config space.  Removing the flag during init leaves the space
allocated, but allows legacy PCI devices to report the real device
config space size to rest of Qemu.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/vfio_pci.c