From: ZhouPeng <zpengxen@gmail.com>
To: "Xen-Devel (E-mail)" <xen-devel@lists.xensource.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
"ian.jackson" <Ian.Jackson@eu.citrix.com>
Subject: Fwd:[PATCH-may be a bug ignored] tools/libxl/libxl__build_device_model_args_new/old: The condition is so rigorous that user has no chance to disable the vnc
Date: Wed, 20 Apr 2011 14:59:28 +0800 [thread overview]
Message-ID: <BANLkTi=nXQ7m4+2MrNkPR64073X1J=Ti3Q@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1687 bytes --]
In my spice testing,
I find user have no way to disable vnc in qemu-old and new using xl,
no matter how to set
"vnc vncunused vncpasswd vncdisplay vnclisten" in vm cfg file.
I think this may be a bug ignored.
Signed-off-by: Zhou Peng <zhoupeng@nfs.iscas.ac.cn>
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.
diff -r 41879bb8d174 -r 6871474a2a09 tools/libxl/libxl_dm.c
--- a/tools/libxl/libxl_dm.c Fri Apr 15 09:51:14 2011 +0800
+++ b/tools/libxl/libxl_dm.c Fri Apr 15 10:06:59 2011 +0800
@@ -55,7 +55,7 @@ static char ** libxl__build_device_model
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) {
@@ -205,7 +205,7 @@ static char ** libxl__build_device_model
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";
--
Zhou Peng
Operating System Technology Group
Institute of Software, the Chinese Academy of Sciences (ISCAS)
[-- Attachment #2: tools-libxl-user-chance-to-disable-vnc.diff --]
[-- Type: text/x-patch, Size: 1515 bytes --]
In my spice testing,
I find user have no way to disable vnc in qemu-old and new using xl through xm cfg file.
I think this may be a bug ignored.
Signed-off-by: Zhou Peng <zhoupeng@nfs.iscas.ac.cn>
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.
diff -r 41879bb8d174 -r 6871474a2a09 tools/libxl/libxl_dm.c
--- a/tools/libxl/libxl_dm.c Fri Apr 15 09:51:14 2011 +0800
+++ b/tools/libxl/libxl_dm.c Fri Apr 15 10:06:59 2011 +0800
@@ -55,7 +55,7 @@ static char ** libxl__build_device_model
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) {
@@ -205,7 +205,7 @@ static char ** libxl__build_device_model
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";
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next reply other threads:[~2011-04-20 6:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-20 6:59 ZhouPeng [this message]
2011-04-20 12:13 ` Fwd:[PATCH-may be a bug ignored] tools/libxl/libxl__build_device_model_args_new/old: The condition is so rigorous that user has no chance to disable the vnc Stefano Stabellini
2011-04-21 1:02 ` ZhouPeng
2011-05-20 15:11 ` Ian Jackson
2011-05-09 12:37 ` Ian Jackson
2011-05-10 11:05 ` ZhouPeng
2011-05-10 11:09 ` ZhouPeng
2011-05-11 2:28 ` ZhouPeng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='BANLkTi=nXQ7m4+2MrNkPR64073X1J=Ti3Q@mail.gmail.com' \
--to=zpengxen@gmail.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).