From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhDRj-0005GO-6Q for qemu-devel@nongnu.org; Thu, 23 Oct 2014 04:08:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhDRe-0005mH-Cc for qemu-devel@nongnu.org; Thu, 23 Oct 2014 04:08:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhDRe-0005mB-5N for qemu-devel@nongnu.org; Thu, 23 Oct 2014 04:08:30 -0400 Message-ID: <1414051702.30724.6.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Thu, 23 Oct 2014 10:08:22 +0200 In-Reply-To: <1414042783-2180-1-git-send-email-arei.gonglei@huawei.com> References: <1414042783-2180-1-git-send-email-arei.gonglei@huawei.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/3] vnc: trivial problem and memory leak fix List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: arei.gonglei@huawei.com Cc: weidong.huang@huawei.com, qemu-devel@nongnu.org, peter.huangpeng@huawei.com On Do, 2014-10-23 at 13:39 +0800, arei.gonglei@huawei.com wrote: > From: Gonglei > > 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" cheers, Gerd