mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
libxl: make it possible to disable vnc
tools/libxl/libxl__build_device_model_args_new/old: The condition is so rigorous that user has no chance to disable the vnc, considering what has been done in parse_config_data() by default, which is not resonable with vnc option in vm-cfg file. I think, If user explicitly set "vnc=0", vnc should be disabled. User should have the chance to only use sdl, other remote display(spice) and even nothing. Signed-off-by: Zhou Peng <zhoupeng@nfs.iscas.ac.cn> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
8b7d4efbc3
commit
20c29ef7d3
1 file changed
+2
-2
@@ -97,7 +97,7 @@ static char ** libxl__build_device_model_args_old(libxl__gc *gc,
|
||||
if (info->dom_name)
|
||||
flexarray_vappend(dm_args, "-domain-name", info->dom_name, NULL);
|
||||
|
||||
if (info->vnc || info->vncdisplay || info->vnclisten || info->vncunused) {
|
||||
if (info->vnc) {
|
||||
char *vncarg;
|
||||
if (info->vncdisplay) {
|
||||
if (info->vnclisten && strchr(info->vnclisten, ':') == NULL) {
|
||||
@@ -252,7 +252,7 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,
|
||||
if (info->dom_name) {
|
||||
flexarray_vappend(dm_args, "-name", info->dom_name, NULL);
|
||||
}
|
||||
if (info->vnc || info->vncdisplay || info->vnclisten || info->vncunused) {
|
||||
if (info->vnc) {
|
||||
int display = 0;
|
||||
const char *listen = "127.0.0.1";
|
||||
|
||||
|
||||