From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Hughes Subject: Re: Suspending with kvm and kvm_loaded Date: Sat, 16 Jun 2007 18:20:28 +0100 Message-ID: <1182014428.2309.10.camel@work> References: <1181912175.4819.15.camel@work> <4673970B.3070509@qumranet.com> <1181989774.2309.0.camel@work> <20070616123025.GO4299@rhun.haifa.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, pcfe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org To: Muli Ben-Yehuda Return-path: In-Reply-To: <20070616123025.GO4299-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On Sat, 2007-06-16 at 15:30 +0300, Muli Ben-Yehuda wrote: > > > Is there any easy way we can detect if virtual machines are running? > > The module use counts will be elevanted and they'll refuse to unload > (or there's a nasty bug somewhere). Nahh, that's too brutal. Is there a way to (hypothetically) read: # cat /sys/module/kvm/parameters/number_of_running_vms 2 Then if the user tries to suspend we can throw up a bubble saying "Are you sure you want to suspend your computer with a running virtual machine?" Richard. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/