[RFC PATCH linux vdagent 00/10] Use the PCI addr and display ID

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

 



This is a patch set that handles the PCI address and device dispay ID
sent down to the agent by the server, and uses that to maintain a map
for looking up a particular xrandr output for a given spice display id.

This patch series builds on the patch from Lukas titled "Receive the
graphics_device_info message". It incorporates a lot of the code from my
previous POC patch series but reorganizes and restructures it.

Several of the patches in the series are semi-related cleanups that I
ran across while working on the feature.


Jonathon Jongsma (10):
  Add lookup_xrand_output_for_device_info()
  Fix confusion between output index and crtc index
  fix typo in comment
  Move handling of DeviceInfo to vdagent_x11
  Look up and store xrandr output in display map
  Make clearer distinctions between output ids
  Use guest output map to determine xrandr output
  Factor a function out of get_current_mon_config()
  Use new function in vdagent_x11_send_daemon_guest_xorg_res()
  Send display_id down to the vdagentd daemon

 Makefile.am               |  14 ++
 configure.ac              |   1 +
 src/vdagent/device-info.c | 516 ++++++++++++++++++++++++++++++++++++++
 src/vdagent/device-info.h |  26 ++
 src/vdagent/vdagent.c     |  68 +----
 src/vdagent/x11-priv.h    |   1 +
 src/vdagent/x11-randr.c   | 305 +++++++++++++++++-----
 src/vdagent/x11.c         |   7 +
 src/vdagent/x11.h         |   1 +
 src/vdagentd-proto.h      |   1 +
 src/vdagentd/uinput.c     |  23 +-
 tests/test-device-info.c  | 262 +++++++++++++++++++
 12 files changed, 1087 insertions(+), 138 deletions(-)
 create mode 100644 src/vdagent/device-info.c
 create mode 100644 src/vdagent/device-info.h
 create mode 100644 tests/test-device-info.c

-- 
2.17.2

_______________________________________________
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]