This series adds support for a vgpu display to the qemu vfio code. For now only regions are supported, dmabufs will follow later.
The vfio API update is done, queued in drm-next, should land in the upstream kernel during the 4.16 merge window. So the 4.16-rc1 kernel header sync should bring the header changes needed for this series. Patch #1 of this series has the vfio.h updates too, for testing convinience, but I don't plan to include that patch in the final patch submission. plese test and review, Gerd Gerd Hoffmann (5): headers: update linux-headers/linux/vfio.h (intel-gvt kernel patches, v17) headers: add drm/drm_fourcc.h to standard-headers ui/pixman: add qemu_drm_format_to_pixman() vfio/display: core & wireup vfio/display: adding region support hw/vfio/pci.h | 4 + include/hw/vfio/vfio-common.h | 8 + include/standard-headers/drm/drm_fourcc.h | 382 ++++++++++++++++++++++++++++++ include/ui/qemu-pixman.h | 5 + linux-headers/linux/vfio.h | 64 +++++ hw/vfio/display.c | 149 ++++++++++++ hw/vfio/pci.c | 9 + ui/qemu-pixman.c | 22 ++ hw/vfio/Makefile.objs | 2 +- scripts/update-linux-headers.sh | 4 + 10 files changed, 648 insertions(+), 1 deletion(-) create mode 100644 include/standard-headers/drm/drm_fourcc.h create mode 100644 hw/vfio/display.c -- 2.9.3