All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gonglei <arei.gonglei@huawei.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: "Huangweidong (C)" <weidong.huang@huawei.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"Huangpeng (Peter)" <peter.huangpeng@huawei.com>
Subject: Re: [Qemu-devel] [PATCH 0/3] vnc: trivial problem and memory leak fix
Date: Thu, 23 Oct 2014 16:19:12 +0800	[thread overview]
Message-ID: <5448BA00.4010608@huawei.com> (raw)
In-Reply-To: <1414051702.30724.6.camel@nilsson.home.kraxel.org>

On 2014/10/23 16:08, Gerd Hoffmann wrote:

> On Do, 2014-10-23 at 13:39 +0800, arei.gonglei@huawei.com wrote:
>> From: Gonglei <arei.gonglei@huawei.com>
>>
>> Beside those problems, I also found another issue, see below pls.
>>
>> Qemu command line:
>> $ ./qemu-system-x86_64 -enable-kvm -m 4096 -smp 4 -name redhat6.2 -drive file=/home/redhat.img,if=none,id=drive-ide0-0-0 -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive file=/mnt/sdb/gonglei/iso/rhel-server-7.0-x86_64-dvd.iso,if=none,id=drive-ide0-0-1 -device ide-cd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1,bootindex=4 -qmp unix:/tmp/qmp,server,nowait -monitor stdio -vnc 0.0.0.0:10,password,sasl
>> QEMU 2.1.50 monitor - type 'help' for more information
>> (qemu) change vnc password 123
>> (qemu) change vnc abc
>> error parsing address 'abc'     ---> an intended result because of I set a invalid value 'abc'
>> (qemu) change vnc password 456
>> If you want use passwords please enable password auth using '-vnc ${dpy},password'.Could not set password  --> Oops. I shouldn't get this output.
>> (qemu) 
>>
>>
>> Though we call qmp_change_vnc() failed, the content of global variable vnc_display
>> still will change, such as 'vs->auth = VNC_AUTH_NONE' now. I think this is not
>> reasonable, but I have not good idea to address this issue.
> 
> I think the current behavior is fine.  Better be on the safe side (no
> connects possible) in case "change vnc $display" failed.  You can fix
> that using "change vnc 0.0.0.0:10,password,sasl"
> 

Yes. we can do this. But is it reasonable that an API return false,
but its content changed?

Best regards,
-Gonglei

  reply	other threads:[~2014-10-23  8:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-23  5:39 [Qemu-devel] [PATCH 0/3] vnc: trivial problem and memory leak fix arei.gonglei
2014-10-23  5:39 ` [Qemu-devel] [PATCH 1/3] vnc: remove superfluous vnc_display_close() arei.gonglei
2014-10-23  7:09   ` Michael Tokarev
2014-10-23  7:40     ` Gonglei
2014-10-23  5:39 ` [Qemu-devel] [PATCH 2/3] vnc: fix memory leak at vnc_display_open arei.gonglei
2014-10-23  5:39 ` [Qemu-devel] [PATCH 3/3] vnc: remove superfluous DisplayState *ds parameter arei.gonglei
2014-10-23  7:09   ` Michael Tokarev
2014-10-23  7:55     ` Gonglei
2014-10-23  8:08 ` [Qemu-devel] [PATCH 0/3] vnc: trivial problem and memory leak fix Gerd Hoffmann
2014-10-23  8:19   ` Gonglei [this message]
2014-10-23 12:16     ` Gerd Hoffmann
2014-10-23 12:27       ` Gonglei

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=5448BA00.4010608@huawei.com \
    --to=arei.gonglei@huawei.com \
    --cc=kraxel@redhat.com \
    --cc=peter.huangpeng@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=weidong.huang@huawei.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.