[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH V4 12/25] cpr: QMP interfaces for restart
From: |
Steve Sistare |
Subject: |
[PATCH V4 12/25] cpr: QMP interfaces for restart |
Date: |
Tue, 6 Jul 2021 09:45:43 -0700 |
cprexec calls cprexec(). Syntax:
{ 'command': 'cprexec', 'data': { 'argv': [ 'str' ] } }
Add the restart mode:
{ 'enum': 'CprMode', 'data': [ 'reboot', 'restart' ] }
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
---
monitor/qmp-cmds.c | 5 +++++
qapi/cpr.json | 16 +++++++++++++++-
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/monitor/qmp-cmds.c b/monitor/qmp-cmds.c
index 1128604..7326f7d 100644
--- a/monitor/qmp-cmds.c
+++ b/monitor/qmp-cmds.c
@@ -179,6 +179,11 @@ void qmp_cprsave(const char *file, CprMode mode, Error
**errp)
cprsave(file, mode, errp);
}
+void qmp_cprexec(strList *args, Error **errp)
+{
+ cprexec(args, errp);
+}
+
void qmp_cprload(const char *file, Error **errp)
{
cprload(file, errp);
diff --git a/qapi/cpr.json b/qapi/cpr.json
index b6fdc89..2467e48 100644
--- a/qapi/cpr.json
+++ b/qapi/cpr.json
@@ -16,10 +16,12 @@
#
# @reboot: checkpoint can be cprload'ed after a host kexec reboot.
#
+# @restart: checkpoint can be cprload'ed after restarting qemu.
+#
# Since: 6.1
##
{ 'enum': 'CprMode',
- 'data': [ 'reboot' ] }
+ 'data': [ 'reboot', 'restart' ] }
##
@@ -61,6 +63,18 @@
'mode': 'CprMode' } }
##
+# @cprexec:
+#
+# Restart qemu.
+#
+# @argv: arguments to exec
+#
+# Since: 6.1
+##
+{ 'command': 'cprexec',
+ 'data': { 'argv': [ 'str' ] } }
+
+##
# @cprload:
#
# Start virtual machine from checkpoint file that was created earlier using
--
1.8.3.1
- [PATCH V4 00/25] Live Update, Steve Sistare, 2021/07/06
- [PATCH V4 01/25] qemu_ram_volatile, Steve Sistare, 2021/07/06
- [PATCH V4 02/25] cpr: reboot mode, Steve Sistare, 2021/07/06
- [PATCH V4 05/25] as_flat_walk, Steve Sistare, 2021/07/06
- [PATCH V4 03/25] cpr: QMP interfaces for reboot, Steve Sistare, 2021/07/06
- [PATCH V4 06/25] oslib: qemu_clr_cloexec, Steve Sistare, 2021/07/06
- [PATCH V4 07/25] machine: memfd-alloc option, Steve Sistare, 2021/07/06
- [PATCH V4 08/25] vl: add helper to request re-exec, Steve Sistare, 2021/07/06
- [PATCH V4 09/25] string to strList, Steve Sistare, 2021/07/06
- [PATCH V4 10/25] util: env var helpers, Steve Sistare, 2021/07/06
- [PATCH V4 12/25] cpr: QMP interfaces for restart,
Steve Sistare <=
- [PATCH V4 11/25] cpr: restart mode, Steve Sistare, 2021/07/06
- [PATCH V4 13/25] cpr: HMP interfaces for restart, Steve Sistare, 2021/07/06
- [PATCH V4 14/25] pci: export functions for cpr, Steve Sistare, 2021/07/06
- [PATCH V4 15/25] vfio-pci: refactor for cpr, Steve Sistare, 2021/07/06
- [PATCH V4 17/25] vfio-pci: cpr part 2, Steve Sistare, 2021/07/06
- [PATCH V4 19/25] hostmem-memfd: cpr support, Steve Sistare, 2021/07/06
- [PATCH V4 18/25] vhost: reset vhost devices upon cprsave, Steve Sistare, 2021/07/06
- [PATCH V4 21/25] chardev: cpr for simple devices, Steve Sistare, 2021/07/06
- [PATCH V4 20/25] chardev: cpr framework, Steve Sistare, 2021/07/06