mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
2e35c7738e
commit
08479114b0
3 changed files with 151 additions and 0 deletions
|
@ -148,6 +148,9 @@ typedef struct VFIODMABuf {
|
|||
typedef struct VFIODisplay {
|
||||
QemuConsole *con;
|
||||
RAMFBState *ramfb;
|
||||
struct vfio_region_info *edid_info;
|
||||
struct vfio_region_gfx_edid *edid_regs;
|
||||
uint8_t *edid_blob;
|
||||
struct {
|
||||
VFIORegion buffer;
|
||||
DisplaySurface *surface;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue