This is the matching QEMU changes for the proposed kernel-side capability chains. Unfortunately there's also a lot of churn to get to consistent interfaces involved in this series, which allow us to generically handle multiple mmaps overlapping a region and making the actual step of consuming the new kernel data trivial. The last patch shows the proof of concept for reallocating the info buffer when necessary and finding and using capability data. Apologies for the patches being a little rough, but I hope the concept shows through. As noted above, this is of course post-2.5 material and of course kernel header updates would only be included when accepted upstream. Thanks, Alex --- Alex Williamson (5): vfio: Wrap VFIO_DEVICE_GET_REGION_INFO vfio: Generalize region support vfio/pci: Convert all MemoryRegion to dynamic alloc and consistent functions linux-headers/vfio: Update for proposed capabilities list vfio: Enable sparse mmap capability hw/vfio/common.c | 245 +++++++++++++++++++++++++++---- hw/vfio/pci-quirks.c | 62 ++++---- hw/vfio/pci.c | 329 +++++++++++++++++++---------------------- hw/vfio/pci.h | 10 + hw/vfio/platform.c | 71 ++------- include/hw/vfio/vfio-common.h | 26 ++- linux-headers/linux/vfio.h | 53 ++++++- trace-events | 12 + 8 files changed, 502 insertions(+), 306 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html