[PATCH 0/8 v3] Monitor ID between host and guest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

this series introduces a new mechanism to identify monitors across the
host and guest boundary, using the pair (device_address and
device_display_id). device_address is a HW address of a graphics device
(a PCI address to be specific, though other address domains can be
used as well), device_display_id is an ID of the monitor on that device.

This information is gathered from QEMU (regular spice) or
spice-streaming-agent (for the streaming channels) and a mapping of
(channel_id, monitor_id) -> (device_address, device_display_id) is sent
from spice server to the vd_agent. vd_agent uses this mapping to
translate the former ID in incoming messages to the latter.

This series follows up on the "QXL interface to set monitor ID" series
[1] and then Jonathon Jongsma's "Use the PCI addr and display ID" [2]
follows up on this to make a complete solution.

You can also find the code in the following branches:
https://gitlab.freedesktop.org/lukash/spice-protocol/commits/monitor-id-v3-2
https://gitlab.freedesktop.org/lukash/spice/commits/monitor-id-v3-2
https://gitlab.freedesktop.org/lukash/spice-streaming-agent/commits/monitor-id-v3-2
https://gitlab.freedesktop.org/lukash/vd_agent/commits/monitor-id-v3-2

Cheers,
Lukas


Changes since v2:
* Fixed wrong commits for spice streaming agent.
* Changed g_error to g_warning.
* Fixed buffer overflows when reading device_address from the virtio
  port on the server.
* Removed an unnecessary header include in the server.
* Fixed a buffer overflow when reading device_address in the vd_agent.


[1] https://lists.freedesktop.org/archives/spice-devel/2019-January/046997.html
[2] https://lists.freedesktop.org/archives/spice-devel/2019-January/046939.html

-- 
2.20.1

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]