From mboxrd@z Thu Jan 1 00:00:00 1970 From: jd Subject: Re: KVM Management : Paused stauts Date: Mon, 6 Oct 2008 06:04:09 -0700 (PDT) Message-ID: <517358.46124.qm@web35807.mail.mud.yahoo.com> References: <48E8CCBB.6060106@redhat.com> Reply-To: jdsw2002@yahoo.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Anthony Liguori , KVM List To: Avi Kivity Return-path: Received: from web35807.mail.mud.yahoo.com ([66.163.179.176]:39295 "HELO web35807.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752591AbYJFNEK (ORCPT ); Mon, 6 Oct 2008 09:04:10 -0400 In-Reply-To: <48E8CCBB.6060106@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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 wrote: > From: Avi Kivity > Subject: Re: KVM Management : Paused stauts > To: jdsw2002@yahoo.com > Cc: "Anthony Liguori" , "KVM List" > 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