[libvirt] [PATCH 2/2] domain_conf: add "default" to list of valid spice channels

Alon Levy alevy at redhat.com
Mon May 7 12:33:56 UTC 2012


qemu's behavior in this case is to change the spice server behavior to
require secure connection to any channel not otherwise specified as
being in plaintext mode. libvirt doesn't currently allow requesting this
(via plaintext-channel=<channel name>).

RHBZ: 819499

Signed-off-by: Alon Levy <alevy at redhat.com>
---
 src/conf/domain_conf.c |    3 ++-
 src/conf/domain_conf.h |    1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 10b023e..140bc63 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -429,7 +429,8 @@ VIR_ENUM_IMPL(virDomainGraphicsSpiceChannelName,
               "playback",
               "record",
               "smartcard",
-              "usbredir");
+              "usbredir",
+              "default");
 
 VIR_ENUM_IMPL(virDomainGraphicsSpiceChannelMode,
               VIR_DOMAIN_GRAPHICS_SPICE_CHANNEL_MODE_LAST,
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index 6581fea..6189efa 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -1098,6 +1098,7 @@ enum virDomainGraphicsSpiceChannelName {
     VIR_DOMAIN_GRAPHICS_SPICE_CHANNEL_RECORD,
     VIR_DOMAIN_GRAPHICS_SPICE_CHANNEL_SMARTCARD,
     VIR_DOMAIN_GRAPHICS_SPICE_CHANNEL_USBREDIR,
+    VIR_DOMAIN_GRAPHICS_SPICE_CHANNEL_DEFAULT,
 
     VIR_DOMAIN_GRAPHICS_SPICE_CHANNEL_LAST
 };
-- 
1.7.10.1




More information about the libvir-list mailing list