* [Qemu-devel] [PATCH] do not reset no_shutdown after we shutdown the vm
@ 2011-06-17 2:25 Wen Congyang
2011-07-23 16:51 ` Anthony Liguori
0 siblings, 1 reply; 2+ messages in thread
From: Wen Congyang @ 2011-06-17 2:25 UTC (permalink / raw)
To: qemu-devel, Daniel P. Berrange, Anthony Liguori
Daniel P. Berrange sent a libvirt's patch to support
reboots with the QEMU driver. He implements it in
json model like this:
1. add -no-shutdown in the qemu's option:
qemu -no-shutdown xxxx
2. shutdown the vm by monitor command system_powerdown
3. wait for shutdown event
4. reset the vm by monitor command system_reset
no_shutdown will be reset to 0 if the vm is powered down.
We only can reboot the vm once.
If no_shutdown is not reset to 0, we can reboot the vm
many times.
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
---
vl.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/vl.c b/vl.c
index dbdec71..e2e52ec 100644
--- a/vl.c
+++ b/vl.c
@@ -1396,7 +1396,6 @@ static void main_loop(void)
monitor_protocol_event(QEVENT_SHUTDOWN, NULL);
if (no_shutdown) {
vm_stop(VMSTOP_SHUTDOWN);
- no_shutdown = 0;
} else
break;
}
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] do not reset no_shutdown after we shutdown the vm
2011-06-17 2:25 [Qemu-devel] [PATCH] do not reset no_shutdown after we shutdown the vm Wen Congyang
@ 2011-07-23 16:51 ` Anthony Liguori
0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2011-07-23 16:51 UTC (permalink / raw)
To: Wen Congyang; +Cc: qemu-devel
On 06/16/2011 09:25 PM, Wen Congyang wrote:
> Daniel P. Berrange sent a libvirt's patch to support
> reboots with the QEMU driver. He implements it in
> json model like this:
> 1. add -no-shutdown in the qemu's option:
> qemu -no-shutdown xxxx
> 2. shutdown the vm by monitor command system_powerdown
> 3. wait for shutdown event
> 4. reset the vm by monitor command system_reset
>
> no_shutdown will be reset to 0 if the vm is powered down.
> We only can reboot the vm once.
>
> If no_shutdown is not reset to 0, we can reboot the vm
> many times.
>
> Signed-off-by: Wen Congyang<wency@cn.fujitsu.com>
Applied. Thanks.
Regards,
Anthony Liguori
>
> ---
> vl.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index dbdec71..e2e52ec 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -1396,7 +1396,6 @@ static void main_loop(void)
> monitor_protocol_event(QEVENT_SHUTDOWN, NULL);
> if (no_shutdown) {
> vm_stop(VMSTOP_SHUTDOWN);
> - no_shutdown = 0;
> } else
> break;
> }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-23 16:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-17 2:25 [Qemu-devel] [PATCH] do not reset no_shutdown after we shutdown the vm Wen Congyang
2011-07-23 16:51 ` Anthony Liguori
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).