All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
To: Dimitry Golubovsky <golubovsky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Ways to exit from kvm on behalf of the quest system?
Date: Wed, 01 Aug 2007 16:57:25 -0500	[thread overview]
Message-ID: <46B101C5.8000202@codemonkey.ws> (raw)
In-Reply-To: <bcba51a0708011443o1d48779en94c724dc4fd0625-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Dimitry Golubovsky wrote:
> Anthony,
>
> On 8/1/07, Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org> wrote:
>
>   
>> Why are you using a setuid wrapper instead of just changing ownership of
>> /dev/kvm?
>>     
>
> Ownership of /dev/kvm is adjusted to be of group "kvm" (for example)
> and all users allowed to use it are in the same group. It is also
> necessary to create a tap device (and through unique naming of it
> users are prevented from running multiple instances of VMs thus
> preventing memory overconsumption). Also it is necessary to connect
> tap to bridge. If FS (CAP_NETADMIN) capabilities were available in
> Linux by default then qemu process might be made capable of that (and
> anyway, when dropping to user privileges, capabilities are masked
> away). But they are only in special -mm patches, not in the mainstream
> kernel. So these tap/bridge operations require root privileges.
>
>   
>> The power-off thing is a bug.  I was also thinking that it may be
>> possible to detect when most guests have halted.
>>     
>
> Power-off works for me though.
>   

Note that if your running Linux as a guest, you can issue:

modprobe apm power_off=1

And then when the guest shutdowns, QEMU will exit as expected.  I'm not 
really sure why distros aren't loading apm automatically.

Regards,

Anthony Liguori

> Thanks.
>
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

      parent reply	other threads:[~2007-08-01 21:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-31 16:56 Ways to exit from kvm on behalf of the quest system? Dimitry Golubovsky
     [not found] ` <bcba51a0707310956q41554dedn6b88f3819c37bb41-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-07-31 19:17   ` Amit Shah
     [not found]     ` <200708010047.36600.amit.shah-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-07-31 19:43       ` Dimitry Golubovsky
     [not found]         ` <bcba51a0707311243vf78d45bo9fcb61d0b972f37a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-01 16:40           ` Avi Kivity
     [not found]             ` <46B0B779.5050407-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-08-01 16:48               ` Dimitry Golubovsky
     [not found]                 ` <bcba51a0708010948t106be39dh81fccc10ebf0a676-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-01 16:53                   ` Avi Kivity
2007-08-01 16:57                   ` Daniel P. Berrange
     [not found]                     ` <20070801165750.GH31282-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2007-08-01 17:06                       ` Dimitry Golubovsky
     [not found]                         ` <bcba51a0708011006q3df19f99k7ae9df230c95487f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-01 17:14                           ` Daniel P. Berrange
2007-08-01 18:11                   ` Anthony Liguori
     [not found]                     ` <46B0CCC3.6010308-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-08-01 18:35                       ` Dimitry Golubovsky
     [not found]                         ` <bcba51a0708011135q109b9869qc8c563e6e3aeb004-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-01 21:28                           ` Anthony Liguori
     [not found]                             ` <46B0FAE2.4090906-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-08-01 21:43                               ` Dimitry Golubovsky
     [not found]                                 ` <bcba51a0708011443o1d48779en94c724dc4fd0625-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-08-01 21:48                                   ` Anthony Liguori
2007-08-01 21:57                                   ` Anthony Liguori [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=46B101C5.8000202@codemonkey.ws \
    --to=anthony-rdkfgonbjusknkdkm+me6a@public.gmane.org \
    --cc=golubovsky-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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.