Skip to contentSkip to conversation

KVM Management : Paused stauts

DISCUSSION jd 3 participants 10 messages Aug 9, 2008 – Oct 7, 2008 KVM

lore
Share & tools
lore

jd

author
#0 lore raw

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

#1 lore raw
Quoted 7 lines · jd

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

author
#2 lore raw

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

Quoted 23 lines · Anthony Liguori

From: Anthony Liguori <[email protected]>
Subject: Re: KVM Management : Paused stauts
To: [email protected]
Cc: "KVM List" <[email protected]>
Date: Saturday, August 9, 2008, 8:40 AM

Quoted 2 lines · jd

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

to :

Quoted 2 lines

-- How does one find out if the VM is paused or not ?

I did not find anything in the console.

Quoted 2 lines

If it is currently not possible(which I doubt), is

there a plan to add it ?

Quoted 1 line

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

Regards,

Anthony Liguori

author
#3 lore raw
In reply to Anthony Liguori

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)

Quoted 29 lines · Anthony Liguori

From: Anthony Liguori <[email protected]>
Subject: Re: KVM Management : Paused stauts
To: [email protected]
Cc: "KVM List" <[email protected]>
Date: Saturday, August 9, 2008, 8:40 AM

Quoted 2 lines · jd

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

to :

Quoted 2 lines

-- How does one find out if the VM is paused or not ?

I did not find anything in the console.

Quoted 2 lines

If it is currently not possible(which I doubt), is

there a plan to add it ?

Quoted 1 line

'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 [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 9 lines · jd

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

Quoted 16 lines

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

Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
author
#5 lore raw
Quoted 3 lines

"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

Quoted 40 lines · Avi Kivity

From: Avi Kivity <[email protected]>
Subject: Re: KVM Management : Paused stauts
To: [email protected]
Cc: "Anthony Liguori" <[email protected]>, "KVM List" <[email protected]>
Date: Saturday, October 4, 2008, 5:46 AM

Quoted 3 lines · jd

Hi

I do not see (halted) when I "stop"

(pause) the vm. Tried on both KVM-70 and kvm-73.

Quoted 6 lines

Is there a particular version it was introduced in?

Thanks
/Jd

Quoted 16 lines

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

Signature · 2 lines
Do not meddle in the internals of kernels, for they are
subtle and quick to panic.
#6 lore raw
Quoted 11 lines · jd
Quoted 4 lines

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

Quoted 2 lines

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.

Signature · 1 line
error compiling committee.c: too many arguments to function
author
#7 lore raw

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

Quoted 40 lines · Avi Kivity

From: Avi Kivity <[email protected]>
Subject: Re: KVM Management : Paused stauts
To: [email protected]
Cc: "Anthony Liguori" <[email protected]>, "KVM List" <[email protected]>
Date: Sunday, October 5, 2008, 7:18 AM

Quoted 7 lines · jd
Quoted 4 lines

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

Quoted 2 lines

My understanding is that when guest executes shutdown

sequence, eventually it will execute hlt.

Quoted 2 lines

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.

Quoted 1 line

When you give stop via the monitor/console, what

happens ? (and on continue)

Quoted 1 line

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.

Signature · 1 line
error compiling committee.c: too many arguments to function
#8 lore raw
Quoted 4 lines · jd

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.

Signature · 1 line
error compiling committee.c: too many arguments to function
author
#9 lore raw

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

Quoted 28 lines · Avi Kivity

From: Avi Kivity <[email protected]>
Subject: Re: KVM Management : Paused stauts
To: [email protected]
Cc: "Anthony Liguori" <[email protected]>, "KVM List" <[email protected]>
Date: Tuesday, October 7, 2008, 7:49 AM

Quoted 3 lines · jd

Thanks for clarifying.

So back to my original question, how do I determine

(via monitor/console) if the guest is in
"halted"/stop state ?

Quoted 1 line

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.

Signature · 8 lines
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 [email protected]
More majordomo info at 
http://vger.kernel.org/majordomo-info.html