Go to file
Alon Levy 49808025e7 add QXL_IO_FLUSH_{SURFACES,RELEASE} for sleep (S3) support
related RHBZ: 688883

Guest initiated sleep looks like this:

 Guest:
  (0) stop putting new commands into the rings
  (1) QXL_IO_FLUSH_SURFACES
      qxl calls flush_surfaces(), spice-server flushes command rings and
      renders all surfaces, thereby flushing state to device memory.
  (2) QXL_IO_DESTROY_ALL_SURFACES
      zap surfaces
  (3) QXL_IO_FLUSH_RELEASE
      push release queue head into the release ring, so the guest
      will see it and can release everything.
  (4) tell acpi to reset
 Qemu:
  (5) qxl_reset_handler
 Guest:
  (6) sends surface create commands

The QXL_IO_FLUSH_SURFACES is an optimization, to reduce vmexits. It is used to
 flush both command rings and update all surfaces at once (equivalent to
 UPDATE_AREA X NUM_ACTIVE_SURFACES)

 destroy all surfaces to release resources but not destroy the guest side surfaces
 get device to flush all server released resources to the release ring (could use multiple
  calls to OOM - but this is not well defined, would need to loop)
 After (1) there will be no memory allocated on the pci bars.
2011-07-18 11:20:39 +03:00
spice add QXL_IO_FLUSH_{SURFACES,RELEASE} for sleep (S3) support 2011-07-18 11:20:39 +03:00
.gitignore Add gitignore file 2010-02-04 16:47:32 +01:00
AUTHORS Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
autogen.sh Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
ChangeLog Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
configure.ac Release 0.8.0 2011-03-01 19:20:35 +02:00
COPYING Add MIT style COPYING file 2010-02-04 16:23:24 +01:00
includes.sed Add includes.sed file to handle include renaming 2010-02-04 18:12:07 +01:00
INSTALL Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
Makefile.am place pkgconfig file in /usr/share 2010-07-08 16:59:47 +02:00
NEWS Release 0.8.0 2011-03-01 19:20:35 +02:00
README Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00
rename-identifiers.sh Add utility script to do C identifier renaming 2010-02-04 16:43:24 +01:00
renames fix up reames 2010-02-04 18:11:09 +01:00
spice-protocol.pc.in Add autoconf and pkg-config setup 2010-02-04 16:47:27 +01:00