From: Gonglei <arei.gonglei@huawei.com>
To: "Gonglei (Arei)" <arei.gonglei@huawei.com>
Cc: "Huangpeng (Peter)" <peter.huangpeng@huawei.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"kraxel@redhat.com" <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 2/2] vnc: auto assian an id when calling change vnc qmp interface
Date: Thu, 5 Feb 2015 17:40:35 +0800 [thread overview]
Message-ID: <54D33A93.7050809@huawei.com> (raw)
In-Reply-To: <1423128969-5012-3-git-send-email-arei.gonglei@huawei.com>
On 2015/2/5 17:36, Gonglei (Arei) wrote:
> From: Gonglei <arei.gonglei@huawei.com>
>
> Only in this way, change vnc qmp interface can take effect,
> because qemu_opts_find(&qemu_vnc_opts, id) will return NULL
> in vnc_display_open(), It can't connect successfully vnc
> server forever.
>
> Signed-off-by: Gonglei <arei.gonglei@huawei.com>
> ---
> qmp.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/qmp.c b/qmp.c
> index 963305c..028193b 100644
> --- a/qmp.c
> +++ b/qmp.c
> @@ -381,6 +381,11 @@ static void qmp_change_vnc_listen(const char *target, Error **errp)
> qemu_opts_del(opts);
> }
> opts = vnc_parse_func(target);
> + if (opts) {
Oops... I forget to rebase. It should be 'if (!opts)'. :(
Regards,
-Gonglei
> + return;
> + }
> +
> + vnc_auto_assign_id(olist, opts);
> vnc_display_open("default", errp);
> }
>
prev parent reply other threads:[~2015-02-05 9:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-05 9:36 [Qemu-devel] [PATCH 0/2] vnc: fix two bugs about qmp_change vnc arei.gonglei
2015-02-05 9:36 ` [Qemu-devel] [PATCH 1/2] vnc: introduce an wrapper for auto assign vnc id arei.gonglei
2015-02-05 9:36 ` [Qemu-devel] [PATCH 2/2] vnc: auto assian an id when calling change vnc qmp interface arei.gonglei
2015-02-05 9:40 ` Gonglei [this message]
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=54D33A93.7050809@huawei.com \
--to=arei.gonglei@huawei.com \
--cc=kraxel@redhat.com \
--cc=peter.huangpeng@huawei.com \
--cc=qemu-devel@nongnu.org \
/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.