Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-21 Thread Patrick C. F. Ernzer
Hiho, --On Tuesday, June 19, 2007 13:41:07 +0100 Richard Hughes <[EMAIL PROTECTED]> wrote: On Tue, 2007-06-19 at 08:33 -0400, Jeremy Katz wrote: [...] I actually extracted the patch set yesterday for the Fedora kernel and it's in today's rawhide kernel. Should be a good way to get some ext

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-19 Thread Richard Hughes
On Tue, 2007-06-19 at 08:33 -0400, Jeremy Katz wrote: > On Tue, 2007-06-19 at 11:05 +0300, Avi Kivity wrote: > > Richard Hughes wrote: > > > On Sun, 2007-06-17 at 11:10 +0300, Avi Kivity wrote: > > >> I posted a patchset which does just that, when the F kernel > > >> integrates > > >> it (through

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-19 Thread Jeremy Katz
On Tue, 2007-06-19 at 11:05 +0300, Avi Kivity wrote: > Richard Hughes wrote: > > On Sun, 2007-06-17 at 11:10 +0300, Avi Kivity wrote: > >> I posted a patchset which does just that, when the F kernel > >> integrates > >> it (through inclusion of 2.6.23 or by patching the current kernel), > >> Fedo

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-19 Thread Avi Kivity
Richard Hughes wrote: > On Sun, 2007-06-17 at 11:10 +0300, Avi Kivity wrote: > >> I posted a patchset which does just that, when the F kernel >> integrates >> it (through inclusion of 2.6.23 or by patching the current kernel), >> Fedora will be able to suspend/resume just fine. >> > > I'

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-17 Thread Richard Hughes
On Sun, 2007-06-17 at 11:10 +0300, Avi Kivity wrote: > > I posted a patchset which does just that, when the F kernel > integrates > it (through inclusion of 2.6.23 or by patching the current kernel), > Fedora will be able to suspend/resume just fine. I've tried the current kvm kernel git tree

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-17 Thread Avi Kivity
Daniel Veillard wrote: > Well if there were a way to discover running KVM instances and > communicate with them, then we wouldn't need to keep a daemon as a > parent process for libvirt access and control. It's a point I would > love to see solved at the QEmu level, but it's not really urgent :-)

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-17 Thread Daniel Veillard
On Sun, Jun 17, 2007 at 10:19:09AM +0100, Richard Hughes wrote: > On Sun, 2007-06-17 at 11:10 +0300, Avi Kivity wrote: > > > Does anybod know why libvirt does not detect my running qemu VM (that > > > uses KVM acceleration)? I get: > > > > > If you start a virtual machine outside libvirt's knowledg

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-17 Thread Richard Hughes
On Sun, 2007-06-17 at 11:10 +0300, Avi Kivity wrote: > No no no. The proper fix will have suspend "just working", whether or > not a virtual machine is running or not. When you resume, the virtual > machines continue running as if nothing had happened. Ahh gotcha. In which case I apologize, I

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-17 Thread Avi Kivity
Richard Hughes wrote: > On Sun, 2007-06-17 at 10:02 +0300, Avi Kivity wrote: > >>> "Are you sure you want to suspend your computer with a running >>> >> virtual >> >>> machine?" >>> >>> >> Why invest in workarounds when a fix is available? >> > > Totally agree. I was r

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-17 Thread Richard Hughes
On Sun, 2007-06-17 at 10:02 +0300, Avi Kivity wrote: > > "Are you sure you want to suspend your computer with a running > virtual > > machine?" > > > > Why invest in workarounds when a fix is available? Totally agree. I was really looking for a proper fix, e.g. use libvirt to suspend the virtu

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-17 Thread Avi Kivity
Richard Hughes wrote: > 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,

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-16 Thread Muli Ben-Yehuda
On Sat, Jun 16, 2007 at 07:36:18PM +0200, Luca wrote: > On 6/16/07, Richard Hughes <[EMAIL PROTECTED]> wrote: > >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 elevant

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-16 Thread Luca
On 6/16/07, Richard Hughes <[EMAIL PROTECTED]> wrote: > 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 s

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-16 Thread Richard Hughes
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 (hypothet

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-16 Thread Muli Ben-Yehuda
On Sat, Jun 16, 2007 at 11:29:34AM +0100, Richard Hughes 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). Cheers, Muli --

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-16 Thread Richard Hughes
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. T

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-16 Thread Avi Kivity
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 rmmo

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-15 Thread Richard Hughes
On Fri, 2007-06-15 at 09:27 -0400, Jeremy Katz wrote: > 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 ge

Re: [kvm-devel] Suspending with kvm and kvm_loaded

2007-06-15 Thread Jeremy Katz
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,

[kvm-devel] Suspending with kvm and kvm_loaded

2007-06-15 Thread Richard Hughes
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'