From: Asias He <asias.hejun@gmail.com>
To: gaowanlong@cn.fujitsu.com
Cc: Pekka Enberg <penberg@kernel.org>,
Sasha Levin <levinsasha928@gmail.com>,
Cyrill Gorcunov <gorcunov@gmail.com>, Ingo Molnar <mingo@elte.hu>,
kvm@vger.kernel.org
Subject: Re: [PATCH 2/2] kvm tools: Improve './lkvm {pause,resume}'s output
Date: Thu, 22 Dec 2011 10:15:59 +0800 [thread overview]
Message-ID: <4EF292DF.2060407@gmail.com> (raw)
In-Reply-To: <4EF1A362.4030508@cn.fujitsu.com>
On 12/21/2011 05:14 PM, Wanlong Gao wrote:
> On 12/21/2011 04:07 PM, Asias He wrote:
>
>> ./lkvm {pause,resume} do not give any feedback to user who uses these
>> commands in the console where the command run.
>>
>> This patch makes the command output in the command console instead of
>> guest console.
>
>
> I's like notice users in both sides, so don't remove the pr_info?
It's quite annoying to print in the guest side. And we can reflect the
guest status in 'lkvm list' now. So I'd like to remove the guest side
notification.
>
>
> Thanks
> -Wanlong Gao
>
>>
>> Signed-off-by: Asias He <asias.hejun@gmail.com>
>> ---
>> tools/kvm/builtin-pause.c | 2 ++
>> tools/kvm/builtin-resume.c | 2 ++
>> tools/kvm/builtin-run.c | 1 -
>> 3 files changed, 4 insertions(+), 1 deletions(-)
>>
>> diff --git a/tools/kvm/builtin-pause.c b/tools/kvm/builtin-pause.c
>> index 107641c..a8e805e 100644
>> --- a/tools/kvm/builtin-pause.c
>> +++ b/tools/kvm/builtin-pause.c
>> @@ -54,6 +54,8 @@ static int do_pause(const char *name, int sock)
>> if (r < 0)
>> return r;
>>
>> + printf("Guest %s paused\n", name);
>> +
>> return 0;
>> }
>>
>> diff --git a/tools/kvm/builtin-resume.c b/tools/kvm/builtin-resume.c
>> index 7b87f59..fd00763 100644
>> --- a/tools/kvm/builtin-resume.c
>> +++ b/tools/kvm/builtin-resume.c
>> @@ -54,6 +54,8 @@ static int do_resume(const char *name, int sock)
>> if (r < 0)
>> return r;
>>
>> + printf("Guest %s resumed\n", name);
>> +
>> return 0;
>> }
>>
>> diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c
>> index fac274c..8f512c3 100644
>> --- a/tools/kvm/builtin-run.c
>> +++ b/tools/kvm/builtin-run.c
>> @@ -515,7 +515,6 @@ static void handle_pause(int fd, u32 type, u32 len, u8 *msg)
>> return;
>>
>> is_paused = !is_paused;
>> - pr_info("Guest %s\n", is_paused ? "paused" : "resumed");
>> }
>>
>> static void handle_debug(int fd, u32 type, u32 len, u8 *msg)
>
>
>
--
Asias He
next prev parent reply other threads:[~2011-12-22 2:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-21 8:07 [PATCH 1/2] kvm tools: Remove lkvm alias vm in 'make clean' Asias He
2011-12-21 8:07 ` [PATCH 2/2] kvm tools: Improve './lkvm {pause,resume}'s output Asias He
2011-12-21 9:14 ` Wanlong Gao
2011-12-22 2:15 ` Asias He [this message]
2011-12-22 6:52 ` Pekka Enberg
2011-12-21 9:14 ` [PATCH 1/2] kvm tools: Remove lkvm alias vm in 'make clean' Wanlong Gao
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=4EF292DF.2060407@gmail.com \
--to=asias.hejun@gmail.com \
--cc=gaowanlong@cn.fujitsu.com \
--cc=gorcunov@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=levinsasha928@gmail.com \
--cc=mingo@elte.hu \
--cc=penberg@kernel.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.