Re: [libvirt] [PATCH] Ignore qemu STOP event when stopping CPUs

2010-04-30 Thread Jiri Denemark
> > > By setting vm->status to PAUSED before actually sending the request to > > > qemu (and resetting it back if the request fails) we can ignore the > > > event since the event handler does nothing when the guest is already > > > paused. This solution is quite hacky but unfortunately it's the bes

Re: [libvirt] [PATCH] Ignore qemu STOP event when stopping CPUs

2010-04-27 Thread Luiz Capitulino
On Tue, 27 Apr 2010 20:01:06 +0100 "Daniel P. Berrange" wrote: > On Tue, Apr 27, 2010 at 03:50:20PM -0300, Luiz Capitulino wrote: > > On Tue, 27 Apr 2010 11:20:39 +0200 > > jdene...@redhat.com wrote: > > > > > From: Jiri Denemark > > > > > > With JSON qemu monitor, we get a STOP event from qem

Re: [libvirt] [PATCH] Ignore qemu STOP event when stopping CPUs

2010-04-27 Thread Daniel P. Berrange
On Tue, Apr 27, 2010 at 03:50:20PM -0300, Luiz Capitulino wrote: > On Tue, 27 Apr 2010 11:20:39 +0200 > jdene...@redhat.com wrote: > > > From: Jiri Denemark > > > > With JSON qemu monitor, we get a STOP event from qemu whenever qemu > > stops guests CPUs. The downside of it is that vm->state is

Re: [libvirt] [PATCH] Ignore qemu STOP event when stopping CPUs

2010-04-27 Thread Luiz Capitulino
On Tue, 27 Apr 2010 11:20:39 +0200 jdene...@redhat.com wrote: > From: Jiri Denemark > > With JSON qemu monitor, we get a STOP event from qemu whenever qemu > stops guests CPUs. The downside of it is that vm->state is changed to > PAUSED and a new generic paused event is send to applications. How

Re: [libvirt] [PATCH] Ignore qemu STOP event when stopping CPUs

2010-04-27 Thread Jiri Denemark
> > With JSON qemu monitor, we get a STOP event from qemu whenever qemu > > stops guests CPUs. The downside of it is that vm->state is changed to > > PAUSED and a new generic paused event is send to applications. However, > > when we ask qemu to stop the CPUs we are not really interested in qemu >

Re: [libvirt] [PATCH] Ignore qemu STOP event when stopping CPUs

2010-04-27 Thread Jiri Denemark
> > With JSON qemu monitor, we get a STOP event from qemu whenever qemu > > stops guests CPUs. The downside of it is that vm->state is changed to > > PAUSED and a new generic paused event is send to applications. However, > > when we ask qemu to stop the CPUs we are not really interested in qemu >

Re: [libvirt] [PATCH] Ignore qemu STOP event when stopping CPUs

2010-04-27 Thread Daniel Veillard
On Tue, Apr 27, 2010 at 11:20:39AM +0200, jdene...@redhat.com wrote: > From: Jiri Denemark > > With JSON qemu monitor, we get a STOP event from qemu whenever qemu > stops guests CPUs. The downside of it is that vm->state is changed to > PAUSED and a new generic paused event is send to application

[libvirt] [PATCH] Ignore qemu STOP event when stopping CPUs

2010-04-27 Thread jdenemar
From: Jiri Denemark With JSON qemu monitor, we get a STOP event from qemu whenever qemu stops guests CPUs. The downside of it is that vm->state is changed to PAUSED and a new generic paused event is send to applications. However, when we ask qemu to stop the CPUs we are not really interested in q