yuri.benditovich@daynix.com 6a01308788 qxl-wddm-dod: Prepare for failure to allocate memory
Preparation for further scenarios when memory allocation failure
can happen and we'll need to use fallback when possible.
Memory allocation can fail in following cases:
- when non-forced memory allocation used and the attempt to allocate
  the memory must be as fast as possible, without waits
- when forced memory allocation used, but the driver already received
  stop command and waits for thread termination. Note that in case
  the VSync control is enabled stop command may happen even after the video
  subsystem executes switch to VGA mode. In such case QEMU will not return
  previously allocated objects (assuming the QXL driver already disabled
  and ignoring callbacks from Spice server in VGA mode).

In case of forced memory allocation the allocation routine waits
unpredictable time until the request is satisfied. In current commit
we do not acquire m_MemLock mutex for all this time, but release it
when entering long wait to allow another caller to try allocating memory.

Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-04-12 08:20:54 +01:00
2016-09-09 11:09:31 +01:00
2016-09-09 11:09:31 +01:00
2014-09-02 17:19:04 +10:00
2016-09-09 11:09:31 +01:00
2016-09-09 11:09:31 +01:00
2016-11-04 11:18:09 +00:00
2016-09-09 11:09:31 +01:00
2016-10-25 17:16:48 +02:00

QXL-WDDM-DOD

Heavily based on Microsoft KMDOD example and XDDM QXL driver

The most recent binaries can be found at https://www.spice-space.org/download/windows/qxl-wddm-dod/

Description
A Windows QXL WDDM DOD driver (Display-Only-Driver)
Readme 475 KiB
Languages
C++ 63%
C 35.8%
Batchfile 0.8%
VBScript 0.4%