All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/1] an extensible SetUIInfo2 design
@ 2026-08-07  8:40 Chengyang Zhu
  2026-08-07  8:40 ` [PATCH RFC 1/1] ui/dbus: add extensible SetUIInfo2 method Chengyang Zhu
  2026-08-10  7:20 ` [PATCH RFC 0/1] an extensible SetUIInfo2 design Marc-André Lureau
  0 siblings, 2 replies; 3+ messages in thread
From: Chengyang Zhu @ 2026-08-07  8:40 UTC (permalink / raw)
  To: qemu-devel; +Cc: marcandre.lureau, Chengyang Zhu

Currently, the `SetUIInfo` method cannot set a refresh rate.
Simply adding a refresh_rate argument would break the method signature.

This RFC adds the `SetUIInfo2` method and `QemuUIInfoTypes` property.
  * `SetUIInfo2` takes a dictionary,
    allowing partial updates and adding more keys in the future.
  * `QemuUIInfoTypes` exposes the schema of `SetUIInfo2`'s argument.

This patch is a proof-of-concept and it needs further discussion on:
  * public API design (the name and the signature)
  * partial update behavior (only updating the recognized fields)
  * error handling (ignore the wrong keys or return an error?)

Test results:
  * qemu:qtest-x86_64/dbus-display-test passed
  * qemu:qtest-x86_64/dbus-vmstate-test passed
  * qemu:qtest-x86_64/dbus-vnc-test SKIP
  * manually created a virtual machine
    and successfully set its refresh rate and resolution via `SetUIInfo2`

Chengyang Zhu (1):
  ui/dbus: add extensible SetUIInfo2 method

 ui/dbus-console.c    | 56 ++++++++++++++++++++++++++++++++++++++++++++
 ui/dbus-display1.xml | 17 ++++++++++++++
 2 files changed, 73 insertions(+)

-- 
2.55.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-10  7:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-07  8:40 [PATCH RFC 0/1] an extensible SetUIInfo2 design Chengyang Zhu
2026-08-07  8:40 ` [PATCH RFC 1/1] ui/dbus: add extensible SetUIInfo2 method Chengyang Zhu
2026-08-10  7:20 ` [PATCH RFC 0/1] an extensible SetUIInfo2 design Marc-André Lureau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.