]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
edid: add xmax + ymax properties
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 7 Jun 2019 08:34:29 +0000 (10:34 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 13 Jun 2019 07:34:38 +0000 (09:34 +0200)
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: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20190607083429.31943-1-kraxel@redhat.com

include/hw/display/edid.h

index bacf1708894b6fc7f367cbf34629076d856c78e2..7948bd2c40f8d26e7b67b70f0877fb148079a0e2 100644 (file)
@@ -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 */