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

Submitted by Alon Levy on Sept. 10, 2012, noon

Details

Message ID 1347278460-30693-1-git-send-email-alevy@redhat.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Alon Levy Sept. 10, 2012, noon
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(-)

Patch hide | download patch | download mbox

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 {