diff options
author | Gerd Hoffmann | 2019-06-07 10:34:29 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2019-06-13 09:34:38 +0200 |
commit | 9b330e482fc652b96a61e25a575aed87c091715d (patch) | |
tree | fabaeedc8fc238797e55ff3685226f790e5fa901 /include/hw/display/edid.h | |
parent | Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-4.1-20190612' into... (diff) | |
download | qemu-9b330e482fc652b96a61e25a575aed87c091715d.tar.gz qemu-9b330e482fc652b96a61e25a575aed87c091715d.tar.xz qemu-9b330e482fc652b96a61e25a575aed87c091715d.zip |
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: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20190607083429.31943-1-kraxel@redhat.com
Diffstat (limited to 'include/hw/display/edid.h')
-rw-r--r-- | include/hw/display/edid.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/hw/display/edid.h b/include/hw/display/edid.h index bacf170889..7948bd2c40 100644 --- a/include/hw/display/edid.h +++ b/include/hw/display/edid.h @@ -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 */ |