From: Marek Marczykowski-Górecki Date: Tue, 10 Feb 2015 02:36:47 +0000 (+0100) Subject: libxl: disable VNC and SDL until explicitly enabled X-Git-Tag: v1.2.13-rc1~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98780c6be69f290c2a4956dd7747d3000908c7cd;p=thirdparty%2Flibvirt.git libxl: disable VNC and SDL until explicitly enabled When initializing a libxl_domain_build_info struct with libxl_domain_build_info_init(), VNC is enabled by default. As a result, VMs configured with no graphics still have VNC enabled. This behavior is a regression wrt to the legacy Xen driver. Signed-off-by: Marek Marczykowski-Górecki --- diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c index 4489f84695..e092b11df5 100644 --- a/src/libxl/libxl_conf.c +++ b/src/libxl/libxl_conf.c @@ -745,6 +745,10 @@ libxlMakeDomBuildInfo(virDomainDefPtr def, return -1; } + /* Disable VNC and SDL until explicitly enabled */ + libxl_defbool_set(&b_info->u.hvm.vnc.enable, 0); + libxl_defbool_set(&b_info->u.hvm.sdl.enable, 0); + /* * The following comment and calculation were taken directly from * libxenlight's internal function libxl_get_required_shadow_memory():