Skip to contentSkip to conversation

vnc: increase max display size

PATCH In review Gerd Hoffmann 3 participants 4 messages May 30, 2024 – Jul 18, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 vnc: increase max display size

It's 2024. 4k display resolutions are a thing these days. Raise width and height limits of the qemu vnc server.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1596

---
 ui/vnc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ui/vnc.h +2 -2
index 4521dc88f792..e5fa2efa3e5d 100644
@@ -81,8 +81,8 @@ typedef void VncSendHextileTile(VncState *vs,
 
 /* VNC_MAX_WIDTH must be a multiple of VNC_DIRTY_PIXELS_PER_BIT. */
 
-#define VNC_MAX_WIDTH ROUND_UP(2560, VNC_DIRTY_PIXELS_PER_BIT)
-#define VNC_MAX_HEIGHT 2048
+#define VNC_MAX_WIDTH ROUND_UP(5120, VNC_DIRTY_PIXELS_PER_BIT)
+#define VNC_MAX_HEIGHT 2160
 
 /* VNC_DIRTY_BITS is the number of bits in the dirty bitmap. */
 #define VNC_DIRTY_BITS (VNC_MAX_WIDTH / VNC_DIRTY_PIXELS_PER_BIT)
Signature · 1 line
2.45.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 8 lines · Gerd Hoffmann

It's 2024. 4k display resolutions are a thing these days. Raise width and height limits of the qemu vnc server.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1596

---
 ui/vnc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#2 lore raw
In reply to Gerd Hoffmann
Quoted 15 lines · Gerd Hoffmann

It's 2024. 4k display resolutions are a thing these days. Raise width and height limits of the qemu vnc server.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1596

---
 ui/vnc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ui/vnc.h +0 -0
index 4521dc88f792..e5fa2efa3e5d 100644

ui/vnc.h typedef void VncSendHextileTile(VncState *vs, · line 88

Quoted 10 lines
ui/vnc.h +2 -2
@@ -81,8 +81,8 @@ typedef void VncSendHextileTile(VncState *vs,
 
 /* VNC_MAX_WIDTH must be a multiple of VNC_DIRTY_PIXELS_PER_BIT. */
 
-#define VNC_MAX_WIDTH ROUND_UP(2560, VNC_DIRTY_PIXELS_PER_BIT)
-#define VNC_MAX_HEIGHT 2048
+#define VNC_MAX_WIDTH ROUND_UP(5120, VNC_DIRTY_PIXELS_PER_BIT)
+#define VNC_MAX_HEIGHT 2160
 
 /* VNC_DIRTY_BITS is the number of bits in the dirty bitmap. */
 #define VNC_DIRTY_BITS (VNC_MAX_WIDTH / VNC_DIRTY_PIXELS_PER_BIT)

Hi -- somebody on IRC pointed out that this simple patch had been code-reviewed by Daniel but never made it into git. Marc-André: you're listed maintainer for ui/ -- do you have a pullreq planned?

Alternatively we could take it via qemu-trivial since it's a pretty tiny patch (cc'd).

thanks
-- PMM

#3 lore raw
Quoted 32 lines · Peter Maydell
Quoted 15 lines · Gerd Hoffmann

It's 2024. 4k display resolutions are a thing these days. Raise width and height limits of the qemu vnc server.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1596

---
 ui/vnc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ui/vnc.h +0 -0
index 4521dc88f792..e5fa2efa3e5d 100644

ui/vnc.h typedef void VncSendHextileTile(VncState *vs, · line 88

Quoted 10 lines
ui/vnc.h +2 -2
@@ -81,8 +81,8 @@ typedef void VncSendHextileTile(VncState *vs,
 
 /* VNC_MAX_WIDTH must be a multiple of VNC_DIRTY_PIXELS_PER_BIT. */
 
-#define VNC_MAX_WIDTH ROUND_UP(2560, VNC_DIRTY_PIXELS_PER_BIT)
-#define VNC_MAX_HEIGHT 2048
+#define VNC_MAX_WIDTH ROUND_UP(5120, VNC_DIRTY_PIXELS_PER_BIT)
+#define VNC_MAX_HEIGHT 2160
 
 /* VNC_DIRTY_BITS is the number of bits in the dirty bitmap. */
 #define VNC_DIRTY_BITS (VNC_MAX_WIDTH / VNC_DIRTY_PIXELS_PER_BIT)

Hi -- somebody on IRC pointed out that this simple patch had been code-reviewed by Daniel but never made it into git. Marc-André: you're listed maintainer for ui/ -- do you have a pullreq planned?

Quoted 2 lines

Alternatively we could take it via qemu-trivial since it's a pretty tiny patch (cc'd).

I'm working on a misc pull request, so I'll just include this patch

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|