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've tried the

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), Fedora will be

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 inclusion of

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, that's too

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 virtual

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 really looking for a proper

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
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 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 and

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 rmmod'd

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. To get the

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 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

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 somewhere).

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 elevanted and they'll

[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