kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* KVM Management : Paused stauts
@ 2008-08-09  2:04 jd
  2008-08-09 15:40 ` Anthony Liguori
  0 siblings, 1 reply; 10+ messages in thread
From: jd @ 2008-08-09  2:04 UTC (permalink / raw)
  To: KVM List

Hi
  This is possibly a repeat but I did not get answer to :

-- How does one find out if the VM is paused or not ? I did not find anything  in the console.

   If it is currently not possible(which I doubt), is there a plan to add it ?

Thanks
/Jd



      

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: KVM Management : Paused stauts
  2008-08-09  2:04 KVM Management : Paused stauts jd
@ 2008-08-09 15:40 ` Anthony Liguori
  2008-08-09 21:12   ` jd
  2008-10-03 22:04   ` jd
  0 siblings, 2 replies; 10+ messages in thread
From: Anthony Liguori @ 2008-08-09 15:40 UTC (permalink / raw)
  To: jdsw2002; +Cc: KVM List

jd wrote:
> Hi
>   This is possibly a repeat but I did not get answer to :
>
> -- How does one find out if the VM is paused or not ? I did not find anything  in the console.
>
>    If it is currently not possible(which I doubt), is there a plan to add it ?
>   

'info cpus' in the monitor will have a '(halted)' status at the end.

Regards,

Anthony Liguori

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: KVM Management : Paused stauts
  2008-08-09 15:40 ` Anthony Liguori
@ 2008-08-09 21:12   ` jd
  2008-10-03 22:04   ` jd
  1 sibling, 0 replies; 10+ messages in thread
From: jd @ 2008-08-09 21:12 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: KVM List

Anothony, 
   Thanks a lot for responding to this and my other queries.
/Jd


--- On Sat, 8/9/08, Anthony Liguori <anthony@codemonkey.ws> wrote:

> From: Anthony Liguori <anthony@codemonkey.ws>
> Subject: Re: KVM Management : Paused stauts
> To: jdsw2002@yahoo.com
> Cc: "KVM List" <kvm@vger.kernel.org>
> Date: Saturday, August 9, 2008, 8:40 AM
> jd wrote:
> > Hi
> >   This is possibly a repeat but I did not get answer
> to :
> >
> > -- How does one find out if the VM is paused or not ?
> I did not find anything  in the console.
> >
> >    If it is currently not possible(which I doubt), is
> there a plan to add it ?
> >   
> 
> 'info cpus' in the monitor will have a
> '(halted)' status at the end.
> 
> Regards,
> 
> Anthony Liguori


      

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: KVM Management : Paused stauts
  2008-08-09 15:40 ` Anthony Liguori
  2008-08-09 21:12   ` jd
@ 2008-10-03 22:04   ` jd
  2008-10-04 12:46     ` Avi Kivity
  1 sibling, 1 reply; 10+ messages in thread
From: jd @ 2008-10-03 22:04 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: KVM List

Hi

   I do not see (halted) when I "stop" (pause) the vm. Tried on both KVM-70 and kvm-73.
  
  Is there a particular version it was introduced in?

Thanks
/Jd

(qemu) info cpus
info cpus
* CPU #0: pc=0x00000000c00faaca thread_id=18641
(qemu) stop
stop
(qemu) info cpus
info cpus
* CPU #0: pc=0x00000000c00faaca thread_id=18641
(qemu) cont
cont
(qemu) info cpus
info cpus
* CPU #0: pc=0x00000000c04224f4 thread_id=18641
(qemu) 






--- On Sat, 8/9/08, Anthony Liguori <anthony@codemonkey.ws> wrote:

> From: Anthony Liguori <anthony@codemonkey.ws>
> Subject: Re: KVM Management : Paused stauts
> To: jdsw2002@yahoo.com
> Cc: "KVM List" <kvm@vger.kernel.org>
> Date: Saturday, August 9, 2008, 8:40 AM
> jd wrote:
> > Hi
> >   This is possibly a repeat but I did not get answer
> to :
> >
> > -- How does one find out if the VM is paused or not ?
> I did not find anything  in the console.
> >
> >    If it is currently not possible(which I doubt), is
> there a plan to add it ?
> >   
> 
> 'info cpus' in the monitor will have a
> '(halted)' status at the end.
> 
> Regards,
> 
> Anthony Liguori
> --
> To unsubscribe from this list: send the line
> "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html


      

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: KVM Management : Paused stauts
  2008-10-03 22:04   ` jd
@ 2008-10-04 12:46     ` Avi Kivity
  2008-10-04 22:37       ` jd
  0 siblings, 1 reply; 10+ messages in thread
From: Avi Kivity @ 2008-10-04 12:46 UTC (permalink / raw)
  To: jdsw2002; +Cc: Anthony Liguori, KVM List

jd wrote:
> Hi
>
>    I do not see (halted) when I "stop" (pause) the vm. Tried on both KVM-70 and kvm-73.
>   
>   Is there a particular version it was introduced in?
>
> Thanks
> /Jd
>
> (qemu) info cpus
> info cpus
> * CPU #0: pc=0x00000000c00faaca thread_id=18641
> (qemu) stop
> stop
> (qemu) info cpus
> info cpus
> * CPU #0: pc=0x00000000c00faaca thread_id=18641
> (qemu) cont
> cont
> (qemu) info cpus
> info cpus
> * CPU #0: pc=0x00000000c04224f4 thread_id=18641
> (qemu) 
>
>   

"halted" actually means the vcpu is idle (executing a hlt instruction),
not that the vm is halted.

-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: KVM Management : Paused stauts
  2008-10-04 12:46     ` Avi Kivity
@ 2008-10-04 22:37       ` jd
  2008-10-05 14:18         ` Avi Kivity
  0 siblings, 1 reply; 10+ messages in thread
From: jd @ 2008-10-04 22:37 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Anthony Liguori, KVM List

> "halted" actually means the vcpu is idle
> (executing a hlt instruction),
> not that the vm is halted.


Can u please elaborate a bit on this ? when does guest get in to executing 'hlt' Vs in to 'VM halt'

My understanding is that when guest executes shutdown sequence, eventually it will execute hlt.

When you give stop via the monitor/console, what happens ? (and on continue)

thanks
/Jd


--- On Sat, 10/4/08, Avi Kivity <avi@redhat.com> wrote:

> From: Avi Kivity <avi@redhat.com>
> Subject: Re: KVM Management : Paused stauts
> To: jdsw2002@yahoo.com
> Cc: "Anthony Liguori" <anthony@codemonkey.ws>, "KVM List" <kvm@vger.kernel.org>
> Date: Saturday, October 4, 2008, 5:46 AM
> jd wrote:
> > Hi
> >
> >    I do not see (halted) when I "stop"
> (pause) the vm. Tried on both KVM-70 and kvm-73.
> >   
> >   Is there a particular version it was introduced in?
> >
> > Thanks
> > /Jd
> >
> > (qemu) info cpus
> > info cpus
> > * CPU #0: pc=0x00000000c00faaca thread_id=18641
> > (qemu) stop
> > stop
> > (qemu) info cpus
> > info cpus
> > * CPU #0: pc=0x00000000c00faaca thread_id=18641
> > (qemu) cont
> > cont
> > (qemu) info cpus
> > info cpus
> > * CPU #0: pc=0x00000000c04224f4 thread_id=18641
> > (qemu) 
> >
> >   
> 
> "halted" actually means the vcpu is idle
> (executing a hlt instruction),
> not that the vm is halted.
> 
> -- 
> Do not meddle in the internals of kernels, for they are
> subtle and quick to panic.


      

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: KVM Management : Paused stauts
  2008-10-04 22:37       ` jd
@ 2008-10-05 14:18         ` Avi Kivity
  2008-10-06 13:04           ` jd
  0 siblings, 1 reply; 10+ messages in thread
From: Avi Kivity @ 2008-10-05 14:18 UTC (permalink / raw)
  To: jdsw2002; +Cc: Anthony Liguori, KVM List

jd wrote:
>> "halted" actually means the vcpu is idle
>> (executing a hlt instruction),
>> not that the vm is halted.
>>     
>
>
> Can u please elaborate a bit on this ? when does guest get in to executing 'hlt' Vs in to 'VM halt'
>
> My understanding is that when guest executes shutdown sequence, eventually it will execute hlt.
>
>   

No, hlt is part of the guest idle loop.  It will execute hlt whenever 
the processor has nothing to do.

During shutdown it will execute an ACPI sequence that results in qemu 
exiting.

> When you give stop via the monitor/console, what happens ? (and on continue)
>   

Qemu no longer allows the vcpu to execute.  If it was in halted state, 
it stays that way, and if it wasn't it also stays that way.  When you 
continue, the vcpu gets more cpu time and can proceed.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: KVM Management : Paused stauts
  2008-10-05 14:18         ` Avi Kivity
@ 2008-10-06 13:04           ` jd
  2008-10-07 14:49             ` Avi Kivity
  0 siblings, 1 reply; 10+ messages in thread
From: jd @ 2008-10-06 13:04 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Anthony Liguori, KVM List

Thanks for clarifying.

So back to my original question, how do I determine (via monitor/console) if the guest is in "halted"/stop state ?

/Jd


--- On Sun, 10/5/08, Avi Kivity <avi@redhat.com> wrote:

> From: Avi Kivity <avi@redhat.com>
> Subject: Re: KVM Management : Paused stauts
> To: jdsw2002@yahoo.com
> Cc: "Anthony Liguori" <anthony@codemonkey.ws>, "KVM List" <kvm@vger.kernel.org>
> Date: Sunday, October 5, 2008, 7:18 AM
> jd wrote:
> >> "halted" actually means the vcpu is idle
> >> (executing a hlt instruction),
> >> not that the vm is halted.
> >>     
> >
> >
> > Can u please elaborate a bit on this ? when does guest
> get in to executing 'hlt' Vs in to 'VM halt'
> >
> > My understanding is that when guest executes shutdown
> sequence, eventually it will execute hlt.
> >
> >   
> 
> No, hlt is part of the guest idle loop.  It will execute
> hlt whenever 
> the processor has nothing to do.
> 
> During shutdown it will execute an ACPI sequence that
> results in qemu 
> exiting.
> 
> > When you give stop via the monitor/console, what
> happens ? (and on continue)
> >   
> 
> Qemu no longer allows the vcpu to execute.  If it was in
> halted state, 
> it stays that way, and if it wasn't it also stays that
> way.  When you 
> continue, the vcpu gets more cpu time and can proceed.
> 
> -- 
> error compiling committee.c: too many arguments to function


      

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: KVM Management : Paused stauts
  2008-10-06 13:04           ` jd
@ 2008-10-07 14:49             ` Avi Kivity
  2008-10-07 17:09               ` jd
  0 siblings, 1 reply; 10+ messages in thread
From: Avi Kivity @ 2008-10-07 14:49 UTC (permalink / raw)
  To: jdsw2002; +Cc: Anthony Liguori, KVM List

jd wrote:
> Thanks for clarifying.
>
> So back to my original question, how do I determine (via monitor/console) if the guest is in "halted"/stop state ?
>   

No idea.  Presumably a new info subcommand.

But if you're issuing the stop and cont command, you can simply remember 
the last command you sent.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: KVM Management : Paused stauts
  2008-10-07 14:49             ` Avi Kivity
@ 2008-10-07 17:09               ` jd
  0 siblings, 0 replies; 10+ messages in thread
From: jd @ 2008-10-07 17:09 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Anthony Liguori, KVM List

I would request to get new info command in.

I am sure you realize that remembering the state is not complete solution. When the management tool comes up, it needs to query the VMs and know its current state and sync it with what it knows.

Thanks
/Jd


--- On Tue, 10/7/08, Avi Kivity <avi@redhat.com> wrote:

> From: Avi Kivity <avi@redhat.com>
> Subject: Re: KVM Management : Paused stauts
> To: jdsw2002@yahoo.com
> Cc: "Anthony Liguori" <anthony@codemonkey.ws>, "KVM List" <kvm@vger.kernel.org>
> Date: Tuesday, October 7, 2008, 7:49 AM
> jd wrote:
> > Thanks for clarifying.
> >
> > So back to my original question, how do I determine
> (via monitor/console) if the guest is in
> "halted"/stop state ?
> >   
> 
> No idea.  Presumably a new info subcommand.
> 
> But if you're issuing the stop and cont command, you
> can simply remember 
> the last command you sent.
> 
> -- 
> error compiling committee.c: too many arguments to function
> 
> --
> To unsubscribe from this list: send the line
> "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at 
> http://vger.kernel.org/majordomo-info.html


      

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-10-07 17:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-09  2:04 KVM Management : Paused stauts jd
2008-08-09 15:40 ` Anthony Liguori
2008-08-09 21:12   ` jd
2008-10-03 22:04   ` jd
2008-10-04 12:46     ` Avi Kivity
2008-10-04 22:37       ` jd
2008-10-05 14:18         ` Avi Kivity
2008-10-06 13:04           ` jd
2008-10-07 14:49             ` Avi Kivity
2008-10-07 17:09               ` jd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).