public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Katz <katzj-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Richard Hughes <hughsient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	pcfe-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Subject: Re: Suspending with kvm and kvm_loaded
Date: Fri, 15 Jun 2007 09:27:38 -0400	[thread overview]
Message-ID: <1181914058.10705.3.camel@aglarond.local> (raw)
In-Reply-To: <1181912175.4819.15.camel@work>

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/

  reply	other threads:[~2007-06-15 13:27 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-15 12:56 Suspending with kvm and kvm_loaded Richard Hughes
2007-06-15 13:27 ` Jeremy Katz [this message]
     [not found]   ` <1181914058.10705.3.camel-T9xAYgMuJli44ywRPIzf9A@public.gmane.org>
2007-06-15 13:36     ` Richard Hughes
2007-06-16  7:53 ` Avi Kivity
     [not found]   ` <4673970B.3070509-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-16 10:29     ` Richard Hughes
2007-06-16 12:30       ` Muli Ben-Yehuda
     [not found]         ` <20070616123025.GO4299-WD1JZD8MxeCTrf4lBMg6DdBPR1lH4CV8@public.gmane.org>
2007-06-16 17:20           ` Richard Hughes
2007-06-16 17:36             ` Luca
     [not found]               ` <68676e00706161036h4a5f15edw34a8262c6c00debb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-16 20:00                 ` Muli Ben-Yehuda
2007-06-17  7:02             ` Avi Kivity
     [not found]               ` <4674DC6F.4020108-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-17  8:34                 ` Richard Hughes
2007-06-17  8:10                   ` Avi Kivity
     [not found]                     ` <4674EC81.3080203-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-17  9:19                       ` Richard Hughes
2007-06-17  8:41                         ` Daniel Veillard
     [not found]                           ` <20070617084132.GA10150-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2007-06-17  8:59                             ` Avi Kivity
2007-06-17 18:55                       ` Richard Hughes
2007-06-19  8:05                         ` Avi Kivity
     [not found]                           ` <46778E56.4010106-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-06-19 12:33                             ` Jeremy Katz
     [not found]                               ` <1182256402.9869.2.camel-T9xAYgMuJli44ywRPIzf9A@public.gmane.org>
2007-06-19 12:41                                 ` Richard Hughes
2007-06-21 16:52                                   ` Patrick C. F. Ernzer

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=1181914058.10705.3.camel@aglarond.local \
    --to=katzj-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=hughsient-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=pcfe-H+wXaHxf7aLQT0dZR+AlfA@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox