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 11:29:34 +0100 Message-ID: <1181989774.2309.0.camel@work> References: <1181912175.4819.15.camel@work> <4673970B.3070509@qumranet.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: Avi Kivity Return-path: In-Reply-To: <4673970B.3070509-atKUWr5tajBWk0Htik3J/w@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 10:53 +0300, Avi Kivity wrote: > Richard Hughes wrote: > > Hi, > > > > I'm getting lots of bug reports about installing kvm and then suspend > > breaking. Some background: when the fedora package kvm is installed, > > then the kvm and kvm_xxx modules get auto loaded at boot. To get the > > machine to suspend again, the modules have to be rmmod'd on suspend and > > then modprobe'd on resume. > > > > We can automate the rmmodding and modprobeing adding a simple script in > > pm-utils (/etc/pm/sleep.d/) on package install, but to avoid just > > bodging the issue I wanted to ask you guys first. > > > > * Is it safe to rmmod kvm and kvm_x before suspend? > > > > Yes, although you can't do that if you have any virtual machines running. Is there any easy way we can detect if virtual machines are running? 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/