Vga 20190613 patches
The following changes since commit a050901d4b40092dc356b59912c6df39e389c7b9:
Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-4.1-20190612' into staging (2019-06-12 14:43:47 +0100)
are available in the Git repository at:
git://git.kraxel.org/qemu tags/vga-20190613-pull-request
for you to fetch changes up to 0a71966253c8b07586ebd6bee094a818e1e163b8:
edid: flip the default to enabled (2019-06-13 09:34:50 +0200)
----------------------------------------------------------------
edid: add xmax + ymax properties, enable by default.
----------------------------------------------------------------
Gerd Hoffmann (2):
edid: add xmax + ymax properties
edid: flip the default to enabled
include/hw/display/edid.h | 4 +++- include/hw/virtio/virtio-gpu.h | 2 +- hw/core/machine.c | 8 +++++++- hw/display/bochs-display.c | 2 +- hw/display/vga-pci.c | 4 ++-- 5 files changed, 14 insertions(+), 6 deletions(-)
Signature · 1 line
2.18.1
[Qemu-devel] [PULL 1/2] 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.
Message-id: [email protected]
--- include/hw/display/edid.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
include/hw/display/edid.h +3 -1
@@ -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 */
Signature · 1 line
2.18.1
[Qemu-devel] [PULL 2/2] edid: flip the default to enabled
In reply to Gerd HoffmannMessage-id: [email protected]
--- include/hw/virtio/virtio-gpu.h | 2 +- hw/core/machine.c | 8 +++++++- hw/display/bochs-display.c | 2 +- hw/display/vga-pci.c | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-)
include/hw/virtio/virtio-gpu.h +1 -1
@@ -125,7 +125,7 @@ typedef struct VirtIOGPUBaseClass {#define VIRTIO_GPU_BASE_PROPERTIES (_state, _conf) \ DEFINE_PROP_UINT32("max_outputs", _state, _conf.max_outputs, 1), \ DEFINE_PROP_BIT("edid", _state, _conf.flags, \ - VIRTIO_GPU_FLAG_EDID_ENABLED, false), \ + VIRTIO_GPU_FLAG_EDID_ENABLED, true), \ DEFINE_PROP_UINT32("xres", _state, _conf.xres, 1024), \ DEFINE_PROP_UINT32("yres", _state, _conf.yres, 768)
hw/core/machine.c +7 -1
@@ -24,7 +24,13 @@#include "hw/pci/pci.h" #include "hw/mem/nvdimm.h" -GlobalProperty hw_compat_4_0_1[] = {}; +GlobalProperty hw_compat_4_0_1[] = { + {"VGA" ,"edid" ,"false" }, + {"secondary-vga" ,"edid" ,"false" }, + {"bochs-display" ,"edid" ,"false" }, + {"virtio-vga" ,"edid" ,"false" }, + {"virtio-gpu-pci" ,"edid" ,"false" }, +};const size_t hw_compat_4_0_1_len =G_N_ELEMENTS (hw_compat_4_0_1);GlobalProperty hw_compat_4_0[] = {};
hw/display/bochs-display.c +1 -1
@@ -338,7 +338,7 @@ static void bochs_display_exit(PCIDevice *dev)static Property bochs_display_properties[] = {DEFINE_PROP_SIZE ("vgamem" , BochsDisplayState, vgamem,16 * MiB), -DEFINE_PROP_BOOL ("edid" , BochsDisplayState, enable_edid, false), +DEFINE_PROP_BOOL ("edid" , BochsDisplayState, enable_edid, true),DEFINE_EDID_PROPERTIES (BochsDisplayState, edid_info),DEFINE_PROP_END_OF_LIST (), };
hw/display/vga-pci.c +2 -2
@@ -340,7 +340,7 @@ static Property vga_pci_properties[] = {DEFINE_PROP_BIT ("qemu-extended-regs" , PCIVGAState, flags,PCI_VGA_FLAG_ENABLE_QEXT , true),DEFINE_PROP_BIT ("edid" , - PCIVGAState, flags,PCI_VGA_FLAG_ENABLE_EDID , false), + PCIVGAState, flags,PCI_VGA_FLAG_ENABLE_EDID , true),DEFINE_EDID_PROPERTIES (PCIVGAState, edid_info),DEFINE_PROP_BOOL ("global-vmstate" , PCIVGAState, vga.global_vmstate, false), DEFINE_PROP_END_OF_LIST(),
@@ -351,7 +351,7 @@ static Property secondary_pci_properties[] = {DEFINE_PROP_BIT ("qemu-extended-regs" , PCIVGAState, flags,PCI_VGA_FLAG_ENABLE_QEXT , true),DEFINE_PROP_BIT ("edid" , - PCIVGAState, flags,PCI_VGA_FLAG_ENABLE_EDID , false), + PCIVGAState, flags,PCI_VGA_FLAG_ENABLE_EDID , true),DEFINE_EDID_PROPERTIES (PCIVGAState, edid_info), DEFINE_PROP_END_OF_LIST(), };
Signature · 1 line
2.18.1
Peter Maydell
AppliedQuoted 9 lines · Gerd Hoffmann
The following changes since commit
a050901d4b40092dc356b59912c6df39e389c7b9:Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-4.1-20190612' into staging (2019-06-12 14:43:47 +0100)
are available in the Git repository at:
git://git.kraxel.org/qemutags/vga-20190613-pull-request
Quoted 8 lines
for you to fetch changes up to
0a71966253c8b07586ebd6bee094a818e1e163b8:edid: flip the default to enabled (2019-06-13 09:34:50 +0200)
----------------------------------------------------------------
edid: add xmax + ymax properties, enable by default.----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/4.1
for any user-visible changes.
-- PMM