Commit 9b330e48 authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

edid: add xmax + ymax properties



Add new properties to allow setting the maximum display resolution.
Resolutions larger than that will not be included in the mode list.
In linux guests xrandr can be used to list modes.

Note: The existing xres and yres properties set the preferred display
resolution, i.e. the mode should be first in the mode list and guests
should use it by default.

Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Message-id: 20190607083429.31943-1-kraxel@redhat.com
parent a050901d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@ void qemu_edid_region_io(MemoryRegion *region, Object *owner,

#define DEFINE_EDID_PROPERTIES(_state, _edid_info)              \
    DEFINE_PROP_UINT32("xres", _state, _edid_info.prefx, 0),    \
    DEFINE_PROP_UINT32("yres", _state, _edid_info.prefy, 0)
    DEFINE_PROP_UINT32("yres", _state, _edid_info.prefy, 0),    \
    DEFINE_PROP_UINT32("xmax", _state, _edid_info.maxx, 0),     \
    DEFINE_PROP_UINT32("ymax", _state, _edid_info.maxy, 0)

#endif /* EDID_H */