xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: ZhouPeng <zpengxen@gmail.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: "Xen-Devel (E-mail)" <xen-devel@lists.xensource.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: 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: Tue, 10 May 2011 19:05:02 +0800	[thread overview]
Message-ID: <BANLkTikoKWZ3ckmp6FLRY5jncJ9TeBC2Rw@mail.gmail.com> (raw)
In-Reply-To: <19911.57349.743943.518422@mariner.uk.xensource.com>

2011/5/9 Ian Jackson <Ian.Jackson@eu.citrix.com>:
> ZhouPeng writes ("[Xen-devel] 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"):
>> 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.
>
> Does your patch not have the effect of turning vnc off by default ?  I
> don't think that's correct.

pls see below:
parse_config_data(...)  < xl_cmdimpl.c >
       libxl_init_dm_info(...) set dm_info->vnc = 1
       ...
       if (!xlu_cfg_get_long(config, "vnc", &l))
                dm_info->vnc = l

So, The patch will turn vnc off  by default,
Because dm_info->vnc = 1 in libxl_init_dm_info(...) turn on vnc in default,
My patch turns off vnc only when user 'set vnc = 0' explicitly in vm cfg file.

And testing in xen-unstable, it works.

Thanks,
> Ian.
>



-- 
Zhou Peng
Operating System Technology Group
Institute of Software, the Chinese Academy of Sciences (ISCAS)

  reply	other threads:[~2011-05-10 11:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-20  6:59 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 ZhouPeng
2011-04-20 12:13 ` 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 [this message]
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=BANLkTikoKWZ3ckmp6FLRY5jncJ9TeBC2Rw@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).