From: Gonglei <arei.gong...@huawei.com> This patch series based on my previous series: [PATCH v2 0/3] fix qemu crash about vnc
Reproducer: $ ./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 (qemu) change vnc 0.0.0.0:10,password,sasl (qemu) change vnc abc=a Invalid parameter 'abc' (qemu) v2 -> v1: - fix typo in patch 2, "if (opts)" -> "if (!opts)" Gonglei (2): vnc: introduce an wrapper for auto assign vnc id vnc: auto assian an id when calling change vnc qmp interface include/ui/console.h | 1 + qmp.c | 5 +++++ ui/vnc.c | 22 +++++++++++++++------- 3 files changed, 21 insertions(+), 7 deletions(-) -- 1.7.12.4