]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
vfio-pci: Generalize PCI config mangling
authorAlex Williamson <alex.williamson@redhat.com>
Mon, 1 Apr 2013 17:50:04 +0000 (11:50 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 1 Apr 2013 17:50:04 +0000 (11:50 -0600)
commit4b5d5e87c7ab2e979a2cad6c8e01bcae55b85f1c
treed8a54d74fdcc5c9aaafd48bb075e6e8860473bde
parent010ca0b3fb9bebd6ad53c1db0266dd7b39f700c7
vfio-pci: Generalize PCI config mangling

Kernel-side vfio virtualizes all of config space, but some parts are
unique to Qemu.  For instance we may or may not expose the ROM BAR,
Qemu manages MSI/MSIX, and Qemu manages the multi-function bit so that
single function devices can appear as multi-function and vica versa.
Generalize this into a bitmap of Qemu emulated bits.

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