Skip to content

Commit 785a602

Browse files
committed
Merge remote-tracking branch 'remotes/kraxel/tags/vga-20190613-pull-request' into staging
edid: add xmax + ymax properties, enable by default. # gpg: Signature made Thu 13 Jun 2019 08:38:18 BST # gpg: using RSA key 4CB6D8EED3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <[email protected]>" [full] # gpg: aka "Gerd Hoffmann <[email protected]>" [full] # gpg: aka "Gerd Hoffmann (private) <[email protected]>" [full] # Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138 * remotes/kraxel/tags/vga-20190613-pull-request: edid: flip the default to enabled edid: add xmax + ymax properties Signed-off-by: Peter Maydell <[email protected]>
2 parents 41dbe0d + 0a71966 commit 785a602

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

hw/core/machine.c

+7-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@
2424
#include "hw/pci/pci.h"
2525
#include "hw/mem/nvdimm.h"
2626

27-
GlobalProperty hw_compat_4_0_1[] = {};
27+
GlobalProperty hw_compat_4_0_1[] = {
28+
{ "VGA", "edid", "false" },
29+
{ "secondary-vga", "edid", "false" },
30+
{ "bochs-display", "edid", "false" },
31+
{ "virtio-vga", "edid", "false" },
32+
{ "virtio-gpu-pci", "edid", "false" },
33+
};
2834
const size_t hw_compat_4_0_1_len = G_N_ELEMENTS(hw_compat_4_0_1);
2935

3036
GlobalProperty hw_compat_4_0[] = {};

hw/display/bochs-display.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ static void bochs_display_exit(PCIDevice *dev)
338338

339339
static Property bochs_display_properties[] = {
340340
DEFINE_PROP_SIZE("vgamem", BochsDisplayState, vgamem, 16 * MiB),
341-
DEFINE_PROP_BOOL("edid", BochsDisplayState, enable_edid, false),
341+
DEFINE_PROP_BOOL("edid", BochsDisplayState, enable_edid, true),
342342
DEFINE_EDID_PROPERTIES(BochsDisplayState, edid_info),
343343
DEFINE_PROP_END_OF_LIST(),
344344
};

hw/display/vga-pci.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ static Property vga_pci_properties[] = {
340340
DEFINE_PROP_BIT("qemu-extended-regs",
341341
PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_QEXT, true),
342342
DEFINE_PROP_BIT("edid",
343-
PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_EDID, false),
343+
PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_EDID, true),
344344
DEFINE_EDID_PROPERTIES(PCIVGAState, edid_info),
345345
DEFINE_PROP_BOOL("global-vmstate", PCIVGAState, vga.global_vmstate, false),
346346
DEFINE_PROP_END_OF_LIST(),
@@ -351,7 +351,7 @@ static Property secondary_pci_properties[] = {
351351
DEFINE_PROP_BIT("qemu-extended-regs",
352352
PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_QEXT, true),
353353
DEFINE_PROP_BIT("edid",
354-
PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_EDID, false),
354+
PCIVGAState, flags, PCI_VGA_FLAG_ENABLE_EDID, true),
355355
DEFINE_EDID_PROPERTIES(PCIVGAState, edid_info),
356356
DEFINE_PROP_END_OF_LIST(),
357357
};

include/hw/display/edid.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ void qemu_edid_region_io(MemoryRegion *region, Object *owner,
2222

2323
#define DEFINE_EDID_PROPERTIES(_state, _edid_info) \
2424
DEFINE_PROP_UINT32("xres", _state, _edid_info.prefx, 0), \
25-
DEFINE_PROP_UINT32("yres", _state, _edid_info.prefy, 0)
25+
DEFINE_PROP_UINT32("yres", _state, _edid_info.prefy, 0), \
26+
DEFINE_PROP_UINT32("xmax", _state, _edid_info.maxx, 0), \
27+
DEFINE_PROP_UINT32("ymax", _state, _edid_info.maxy, 0)
2628

2729
#endif /* EDID_H */

include/hw/virtio/virtio-gpu.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ typedef struct VirtIOGPUBaseClass {
125125
#define VIRTIO_GPU_BASE_PROPERTIES(_state, _conf) \
126126
DEFINE_PROP_UINT32("max_outputs", _state, _conf.max_outputs, 1), \
127127
DEFINE_PROP_BIT("edid", _state, _conf.flags, \
128-
VIRTIO_GPU_FLAG_EDID_ENABLED, false), \
128+
VIRTIO_GPU_FLAG_EDID_ENABLED, true), \
129129
DEFINE_PROP_UINT32("xres", _state, _conf.xres, 1024), \
130130
DEFINE_PROP_UINT32("yres", _state, _conf.yres, 768)
131131

0 commit comments

Comments
 (0)