Skip to content

ui/gtk: Update refresh rate on EGL as well

Nikola Pavlica qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ui/gtk: expose gd_monitor_update_intervalinclude/ui/gtk.h ui/gtk.c+2 -10 replies
2/2ui/gtk: update monitor interval on egl displaysui/gtk-egl.c+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ui/gtk: Update refresh rate on EGL as well

These patches regard the use-case of GPU-passthrough on QEMU for
accelerated graphics.

Usually when people use GPU-passthrough on QEMU, they opt to have a
physical seperate graphics card that gets passed through to QEMU using something called "PCIe passthrough". Since the display output is invisible to QEMU, the people who run these kinds of setups tend to view the display outputs by physically connecting a monitor to the "PCIe passthrough-ed" GPU in question.

However, on the Intel side of GPUs, there exists a technology that
allows a user to pass through a "virtual GPU" using something called GVT-g.

Since virtual GPUs have no outputs, they rely soely on software trickery
to get the image displayed on the host machine. In case of GVT-g it is done by DMA-ing the framebuffer to the GTK UIs display.

However, when using GTK outputs, there was a problem which caused the
image to be updated at only 33Hz (or FPS). These issues were first discussed back in December 2019:
https://lists.nongnu.org/archive/html/qemu-devel/2019-12/msg05514.html

There were a few other issues along the way, but those were fixed as well.

The focus of these patches is that when using GVT-g on QEMU, it must
launch the GTK UI in OpenGL/EGL mode. This causes the code responsible for updating the refresh rate to never get executed. Which is why I added it to gtk-egl.c, to make sure updating the refresh rate works on EGL GTK UIs as well.

These patches were made in response to Volkers patches which dealt with
cleaning up my previous code:
https://www.mail-archive.com/[email protected]/msg766686.html
and thus are meant to be merged after Volker's patches.

Hopefully, this commit message isn't too daunting ;)

EDIT: Sorry about the badly formatted patch emailss, still can't get
a hand of how git send-email works.

Nikola Pavlica (2):
ui/gtk: expose gd_monitor_update_interval
ui/gtk: update monitor interval on egl displays

 include/ui/gtk.h | 1 +
 ui/gtk-egl.c     | 3 +++
 ui/gtk.c         | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)
Signature · 1 line
2.30.0