Ui 20210127 patches
The following changes since commit 9cd69f1a270235b652766f00b94114f48a2d603f:
Merge remote-tracking branch 'remotes/stefanberger/tags/pull-tpm-2021-01-25=
-1' into staging (2021-01-26 09:51:02 +0000)
are available in the Git repository at:
git://git.kraxel.org/qemu tags/ui-20210127-pull-request
for you to fetch changes up to 15b08119add1e49ccbc7f7d6b3a04932d2430d7e:
hw/display/vmware_vga: Remove dependency on VNC header (2021-01-27 09:48:04=
+0100)
----------------------------------------------------------------
vnc: fix gtk-vnc compatibility issues.
vnc: vmware svga cleanup
----------------------------------------------------------------
Gerd Hoffmann (2):
Revert "vnc: move initialization to framebuffer_update_request"
vnc: send extended desktop resize on update requests
Peter Maydell (1):
hw/display/vmware_vga: Remove dependency on VNC header
hw/display/vmware_vga.c | 3 +-- ui/vnc.c | 14 ++++++++++---- 2 files changed, 11 insertions(+), 6 deletions(-)
--=20
2.29.2
[PULL 2/3] vnc: send extended desktop resize on update requests
Unlike other pseudo-encodings these don't break gtk-vnc because older versions don't suport the extended desktop resize extension in the first place.
Message-Id: <[email protected]>
--- ui/vnc.c | 3 +++ 1 file changed, 3 insertions(+)
ui/vnc.c +3 -0
@@ -2046,6 +2046,9 @@ static void framebuffer_update_request(VncState *vs, int incremental, }else { vs->update =VNC_STATE_UPDATE_FORCE ;vnc_set_area_dirty (vs->dirty, vs->vd, x, y, w, h); +if (vnc_has_feature (vs,VNC_FEATURE_RESIZE_EXT )) { +vnc_desktop_resize_ext (vs,0 ); + } } }
Signature · 1 line
2.29.2
[PULL 3/3] hw/display/vmware_vga: Remove dependency on VNC header
In reply to Gerd HoffmannFrom: Peter Maydell <[email protected]>
In commit 2f487a3d40faff1 we fixed a problem observed with using the vmware-vga device and the VNC UI frontend in a belt-and-braces manner:
* we made the VNC frontend handle non-multiple-of-16 surface widths
* we rounded up the vmware-vga display width to a multiple of 16
However this introduced a spurious dependency of a device model on a UI frontend header. vmware-vga isn't special and should not care about what UI frontend it is using, and the VNC frontend needs to handle arbitrary surface widths because other display device models could use them. Moreover, even if the maximum width in vmware-vga is made a multiple of 16, the guest itself can always program a different width.
Remove the dependency on the VNC header. Since we have been using the rounded-up width value since 2014, stick with it rather than introducing a behaviour change, but don't calculate it by rounding up to VNC_DIRTY_BITS_PER_PIXEL any more.
Message-Id: <[email protected]>
--- hw/display/vmware_vga.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
hw/display/vmware_vga.c +1 -2
@@ -29,7 +29,6 @@#include "qemu/log.h" #include "hw/loader.h" #include "trace.h" -#include "ui/vnc.h" #include "hw/pci/pci.h" #include "hw/qdev-properties.h" #include "migration/vmstate.h"
@@ -220,7 +219,7 @@ enum {/* These values can probably be changed arbitrarily. */ #define SVGA_SCRATCH_SIZE 0x8000 -#define SVGA_MAX_WIDTH ROUND_UP(2360, VNC_DIRTY_PIXELS_PER_BIT) +#define SVGA_MAX_WIDTH 2368#define SVGA_MAX_HEIGHT 1770#ifdef VERBOSE
Signature · 1 line
2.29.2
[PULL 1/3] Revert "vnc: move initialization to framebuffer_update_request"
In reply to Gerd HoffmannThis reverts commit 9e1632ad07ca49de99da4bb231e9e2f22f2d8df5.
Older gtk-vnc versions can't deal with non-incremental update requests sending pseudo-encodings, so trying to send full server state (including desktop size, cursor etc. which is done using pseudo-encodings) doesn't fly. Return to old behavior to send those only for new connects and when changes happen.
Message-Id: <[email protected]>
--- ui/vnc.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
ui/vnc.c +7 -4
@@ -687,6 +687,10 @@ static void vnc_desktop_resize(VncState *vs) !vnc_has_feature(vs, VNC_FEATURE_RESIZE_EXT))) {return ; } +if (vs->client_width ==pixman_image_get_width (vs->vd->server) && + vs->client_height ==pixman_image_get_height (vs->vd->server)) { +return ; + }assert (pixman_image_get_width (vs->vd->server) <65536 &&pixman_image_get_width (vs->vd->server) >=0 );
@@ -2042,10 +2046,6 @@ static void framebuffer_update_request(VncState *vs, int incremental, }else { vs->update =VNC_STATE_UPDATE_FORCE ;vnc_set_area_dirty (vs->dirty, vs->vd, x, y, w, h); -vnc_colordepth (vs); -vnc_desktop_resize (vs); -vnc_led_state_change (vs); -vnc_cursor_define (vs); } }
@@ -2189,7 +2189,10 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings)break ; } } +vnc_desktop_resize (vs);check_pointer_type_change (&vs->mouse_mode_notifier,NULL ); +vnc_led_state_change (vs); +vnc_cursor_define (vs); }static void set_pixel_conversion (VncState *vs)
Signature · 1 line
2.29.2
Peter Maydell
AppliedQuoted 10 lines · Gerd Hoffmann
The following changes since commit
9cd69f1a270235b652766f00b94114f48a2d603f:Merge remote-tracking branch 'remotes/stefanberger/tags/pull-tpm-2021-01-25=
-1' into staging (2021-01-26 09:51:02 +0000)are available in the Git repository at:
git://git.kraxel.org/qemutags/ui-20210127-pull-request
Quoted 9 lines
for you to fetch changes up to
15b08119add1e49ccbc7f7d6b3a04932d2430d7e:hw/display/vmware_vga: Remove dependency on VNC header (2021-01-27 09:48:04=
+0100)----------------------------------------------------------------
vnc: fix gtk-vnc compatibility issues.
vnc: vmware svga cleanup
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/6.0
for any user-visible changes.
-- PMM