[Spice-devel] [spice-protocol PATCH 1/2] qxl_dev.h: add guest capabilities

Alon Levy alevy at redhat.com
Mon Sep 10 05:00:59 PDT 2012


guest can advertise it's capabilities to the host. The caps are stored on
the guest ram header, there is a fixed maximum of 512 caps.

Any change is advertised with a new io QXL_IO_CAPABILITIES_SET.
---
 spice/qxl_dev.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index 50784dc..5de0eb8 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -96,6 +96,7 @@ enum {
     QXL_IO_FLUSH_RELEASE,
     /* appended for qxl-4 */
     QXL_IO_MONITORS_CONFIG_ASYNC,
+    QXL_IO_CAPABILITIES_SET,
 
     QXL_IO_RANGE_SIZE
 };
@@ -255,7 +256,7 @@ typedef struct SPICE_ATTR_PACKED QXLRam {
 
     /* used by QXL_IO_MONITORS_CONFIG_ASYNC */
     QXLPHYSICAL monitors_config;
-
+    uint8_t guest_capabilities[64];
 } QXLRam;
 
 typedef union QXLReleaseInfo {
-- 
1.7.12



More information about the Spice-devel mailing list