From: Jeremy Katz Subject: Re: Suspending with kvm and kvm_loaded Date: Fri, 15 Jun 2007 09:27:38 -0400 Message-ID: <1181914058.10705.3.camel@aglarond.local> References: <1181912175.4819.15.camel@work> 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: Richard Hughes Return-path: In-Reply-To: <1181912175.4819.15.camel@work> 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 Fri, 2007-06-15 at 13:56 +0100, Richard Hughes wrote: > 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. Also could go into the kvm package instead. Probably shouldn't be done generally in pm-utils (the mantra of fix the real problem, don't add more bodges around it ;-) > * Is it safe to rmmod kvm and kvm_x before suspend? Relatively. Although I vaguely remember having it cause an interesting problem once or twice, but not reproducibly enough to actually figure out what was going on. > * Is there any work on adding suspend and resume hooks into the kvm > driver to support suspend? The bigger thing is there's a need to add some hooks so that kvm can do things at the right point in the suspend sequence. Avi has patches, but they missed the .22 merge window. I need to sit down (maybe today) and refresh the Fedora kvm patch; I was thinking of pushing those changes in at the same time so that this can go away. And if that pans out for a little bit in rawhide, it could easily go out as an F7 update. Jeremy ------------------------------------------------------------------------- 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/