All of lore.kernel.org
 help / color / mirror / Atom feed
From: walimis <walimisdev@gmail.com>
To: Pekka Enberg <penberg@kernel.org>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>, Ingo Molnar <mingo@elte.hu>,
	Sasha Levin <levinsasha928@gmail.com>,
	Prasad Joshi <prasadjoshi124@gmail.com>,
	Asias He <asias.hejun@gmail.com>,
	kvm@vger.kernel.org
Subject: Re: [PATCH 2/2] kvm tools: handle failure of command
Date: Wed, 10 Aug 2011 13:33:04 +0800	[thread overview]
Message-ID: <20110810053304.GC16258@walimis-desktop> (raw)
In-Reply-To: <4E42176B.7000701@kernel.org>

On Wed, Aug 10, 2011 at 08:30:19AM +0300, Pekka Enberg wrote:
>On 8/10/11 8:03 AM, walimis wrote:
>>On Wed, Aug 10, 2011 at 08:02:01AM +0300, Pekka Enberg wrote:
>>>On Wed, Aug 10, 2011 at 5:44 AM, Liming Wang<walimisdev@gmail.com>  wrote:
>>>>handle failure of calling command function, especially, only handle
>>>>EPERM error now.
>>>>
>>>>Signed-off-by: Liming Wang<walimisdev@gmail.com>
>>>I applied the patch because I absolutely loved the error handling
>>>cleanups from the previous patch. However, out of curiosity, are you
>>>seeing EPERM with some command in particular?
>>Yes. Because I'm using ubuntu and if I don't use sudo to execute
>>"kvm pause", pause command can't work and doesn't prompt anything.
>
>That's odd. I don't use sudo with the tool either. Sasha?
If I don't use sudo to run "kvm run", kvm prompt me:
  Fatal, could not open /dev/kvm: Permission denied

So I use sudo to execute "kvm run".
>>BTW, do you always login as "root" user?
>
>Depends on which image you're using.
I don't refer to the guest image. I mean that in your host PC, which user
you login and operate as.

walimis
>
>                            Pekka

  reply	other threads:[~2011-08-10  5:49 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-10  2:44 [PATCH 1/2] kvm tools: convert callback to int and deal with the return value Liming Wang
2011-08-10  2:44 ` [PATCH 2/2] kvm tools: handle failure of command Liming Wang
2011-08-10  5:02   ` Pekka Enberg
2011-08-10  5:03     ` walimis
2011-08-10  5:30       ` Pekka Enberg
2011-08-10  5:33         ` walimis [this message]
2011-08-10  5:53           ` Pekka Enberg
2011-08-10  6:12             ` walimis
2011-08-10  6:35               ` Pekka Enberg
2011-08-10  6:32                 ` walimis
2011-08-10  6:49                   ` Pekka Enberg
2011-08-10  9:28                     ` Asias He

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=20110810053304.GC16258@walimis-desktop \
    --to=walimisdev@gmail.com \
    --cc=asias.hejun@gmail.com \
    --cc=gorcunov@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=levinsasha928@gmail.com \
    --cc=mingo@elte.hu \
    --cc=penberg@kernel.org \
    --cc=prasadjoshi124@gmail.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.