v1: https://lists.gnu.org/archive/html/qemu-devel/2017-12/msg03350.html
See patch 5/5 for a thorough description. v2 changes the 'auto' behavior as we've determined that there's no algorithm which has even a likely chance of success. Instead, auto is now a placeholder for a device/platform lookup for known good combinations (though if I'm pessimistic, even that might depend on guest and driver versions). Thanks, Alex --- Alex Williamson (5): vfio/pci: Fixup VFIOMSIXInfo comment vfio/pci: Add base BAR MemoryRegion vfio/pci: Emulate BARs qapi: Create DEFINE_PROP_OFF_AUTO_PCIBAR vfio/pci: Allow relocating MSI-X MMIO hw/core/qdev-properties.c | 11 +++ hw/vfio/pci.c | 175 ++++++++++++++++++++++++++++++++++++++---- hw/vfio/pci.h | 6 + hw/vfio/trace-events | 2 include/hw/qdev-properties.h | 4 + qapi/common.json | 26 ++++++ 6 files changed, 206 insertions(+), 18 deletions(-)