diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2017-06-06 10:43:32 +0100 |
---|---|---|
committer | Frediano Ziglio <freddy77@gmail.com> | 2021-01-19 13:24:52 +0000 |
commit | ee34327f5907421de82d9173bcb9aa907713939a (patch) | |
tree | 2761843344f9f0fc99514e32afc5408863917072 | |
parent | 06aa9375ad17ffa690a8b572aff6ee1168ffcf7a (diff) |
WIP: start supporting multiple screenstream-experimental
Not clear if we just want to use a single port
(/dev/virtio-ports/com.redhat.stream.0 on Linux) even for multiple
GPU devices.
Also the protocol should limit in some way the cards (Qemu should know
the number) and monitors.
-rw-r--r-- | spice/stream-device.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/spice/stream-device.h b/spice/stream-device.h index 15d839b..03d7c61 100644 --- a/spice/stream-device.h +++ b/spice/stream-device.h @@ -63,8 +63,8 @@ typedef struct StreamDevHeader { /* should be STREAM_DEVICE_PROTOCOL */ uint8_t protocol_version; - /* reserved, should be set to 0 */ - uint8_t padding; + /* use for multiple stream in a single device */ + uint8_t stream_id; /* as defined in StreamMsgType enumeration */ uint16_t type; /* size of the following message. @@ -134,7 +134,11 @@ typedef struct StreamMsgFormat { uint32_t height; /* as defined in SpiceVideoCodecType enumeration */ uint8_t codec; - uint8_t padding1[3]; + uint8_t card_id; + uint8_t monitor_id; + uint8_t padding; + uint32_t stream_x; + uint32_t stream_y; } StreamMsgFormat; /* This message contains just raw data stream. |