vfio/display: add edid support.
commit08479114b0de29f7cdd6ae20f3490b45753db083
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 11 Mar 2019 17:14:39 +0000 (11 11:14 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 11 Mar 2019 18:59:59 +0000 (11 12:59 -0600)
tree239f116aefe403f2d4c649d19ec7ca84198f8817
parent2e35c7738e16452a95aec1fbef5e8b6f38a2d647
vfio/display: add edid support.

This patch adds EDID support to the vfio display (aka vgpu) code.
When supported by the mdev driver qemu will generate a EDID blob
and pass it on using the new vfio edid region.  The EDID blob will
be updated on UI changes (i.e. window resize), so the guest can
adapt.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
[remove control flow via macro, use unsigned format specifier]
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/display.c
hw/vfio/trace-events
include/hw/vfio/vfio-common.h