[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH V1 15/32] vl: QEMU_START_FREEZE env var
From: |
Steve Sistare |
Subject: |
[PATCH V1 15/32] vl: QEMU_START_FREEZE env var |
Date: |
Thu, 30 Jul 2020 08:14:19 -0700 |
For qemu upgrade and restart, we will re-exec() qemu with the same argv.
However, qemu must start in a paused state and wait for the cprload command,
and the original argv might not contain the -S option. To avoid modifying
argv, provide the QEMU_START_FREEZE environment variable. If
QEMU_START_FREEZE is set, then set autostart=0, like the -S option.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
---
softmmu/vl.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/softmmu/vl.c b/softmmu/vl.c
index 951994f..7016e39 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -4501,6 +4501,11 @@ void qemu_init(int argc, char **argv, char **envp)
exit(0);
}
+ if (getenv("QEMU_START_FREEZE")) {
+ unsetenv("QEMU_START_FREEZE");
+ autostart = 0;
+ }
+
if (incoming) {
Error *local_err = NULL;
qemu_start_incoming_migration(incoming, &local_err);
--
1.8.3.1
- Re: [PATCH V1 12/32] vl: pause option, (continued)
Re: [PATCH V1 12/32] vl: pause option, Alex Bennée, 2020/07/30
[PATCH V1 14/32] savevm: VMS_RESTART and cprsave restart, Steve Sistare, 2020/07/30
[PATCH V1 15/32] vl: QEMU_START_FREEZE env var,
Steve Sistare <=
[PATCH V1 16/32] oslib: add qemu_clr_cloexec, Steve Sistare, 2020/07/30
[PATCH V1 17/32] util: env var helpers, Steve Sistare, 2020/07/30
[PATCH V1 20/32] vl: add helper to request re-exec, Steve Sistare, 2020/07/30
[PATCH V1 22/32] char: qio_channel_socket_accept reuse fd, Steve Sistare, 2020/07/30
[PATCH V1 28/32] char: restore terminal on restart, Steve Sistare, 2020/07/30
[PATCH V1 29/32] pci: export pci_update_mappings, Steve Sistare, 2020/07/30
[PATCH V1 25/32] char: save/restore chardev pty fds, Steve Sistare, 2020/07/30
[PATCH V1 24/32] ui: save/restore vnc socket fds, Steve Sistare, 2020/07/30