diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2020-09-29 12:03:06 +0100 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2020-09-29 12:03:06 +0100 |
| commit | 5663ac2aa0eafb40411ac4dff85e6ab529c4d199 (patch) | |
| tree | 233ab02490625bf4ab4cb59a46f2cb620c72c952 /hw/display/virtio-vga.c | |
| parent | 213057383c9f73a17cfe635b204d88e11f918df1 (diff) | |
| parent | 97a0530bb71fb96468f218b622cd840e2c667bf6 (diff) | |
| download | focaccia-qemu-5663ac2aa0eafb40411ac4dff85e6ab529c4d199.tar.gz focaccia-qemu-5663ac2aa0eafb40411ac4dff85e6ab529c4d199.zip | |
Merge remote-tracking branch 'remotes/kraxel/tags/vga-20200929-pull-request' into staging
virtio-vga: reset fix, bigendian fix. virtio-vga+spice: set monitor dimension via edid. # gpg: Signature made Tue 29 Sep 2020 10:57:01 BST # gpg: using RSA key 4CB6D8EED3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" [full] # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" [full] # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" [full] # Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138 * remotes/kraxel/tags/vga-20200929-pull-request: ppc/pseries: enable big-endian-framebuffer quirk for bochs-display and virtio-vga virtio-vga: implement big-endian-framebuffer property virtio-gpu: set physical dimensions for EDID spice: get monitors physical dimension spice: remove the single monitor config logic ui: add getter for UIInfo edid: use physical dimensions if available edid: fix physical display size computation virtio-gpu-3d: fix abnormal display after a warm reboot Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/display/virtio-vga.c')
| -rw-r--r-- | hw/display/virtio-vga.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/hw/display/virtio-vga.c b/hw/display/virtio-vga.c index f9410a0c2e..81f776ee36 100644 --- a/hw/display/virtio-vga.c +++ b/hw/display/virtio-vga.c @@ -168,6 +168,20 @@ static void virtio_vga_base_reset(DeviceState *dev) vga_dirty_log_start(&vvga->vga); } +static bool virtio_vga_get_big_endian_fb(Object *obj, Error **errp) +{ + VirtIOVGABase *d = VIRTIO_VGA_BASE(obj); + + return d->vga.big_endian_fb; +} + +static void virtio_vga_set_big_endian_fb(Object *obj, bool value, Error **errp) +{ + VirtIOVGABase *d = VIRTIO_VGA_BASE(obj); + + d->vga.big_endian_fb = value; +} + static Property virtio_vga_base_properties[] = { DEFINE_VIRTIO_GPU_PCI_PROPERTIES(VirtIOPCIProxy), DEFINE_PROP_END_OF_LIST(), @@ -190,6 +204,11 @@ static void virtio_vga_base_class_init(ObjectClass *klass, void *data) k->realize = virtio_vga_base_realize; pcidev_k->romfile = "vgabios-virtio.bin"; pcidev_k->class_id = PCI_CLASS_DISPLAY_VGA; + + /* Expose framebuffer byteorder via QOM */ + object_class_property_add_bool(klass, "big-endian-framebuffer", + virtio_vga_get_big_endian_fb, + virtio_vga_set_big_endian_fb); } static TypeInfo virtio_vga_base_info = { |