[Spice-devel] [RFC PATCH v2 00/20] Monitor ID rework

Gerd Hoffmann kraxel at redhat.com
Mon Aug 27 12:27:56 UTC 2018


  Hi,

> 1. The IDs sent from the client in VDAgentMonitorsConfig and
> MousePosition messages are equal to either `channel_id + monitor_id` or
> `channel_id ? channel_id : monitor_id`. This is under the assumption
> that there is either only one display_channel or more display channels
> each with only a single monitor. Under this assumption the
> aforementioned expressions are equivalent. It is not a reliable way to
> identify monitors though.

Can we define this to be "channel_id + monitor_id", then use sparse
channel ids?  qxl has room for up to 16 monitors in the protocol
messages.  channel_id is 8 bit.  So we could support up to 16 display
devices with up to 16 outputs each if we enumerate the display channels
0, 16, 32 instead of 0, 1, 2.

cheers,
  Gerd



More information about the Spice-devel mailing list