On Wed, Jul 07, 2021 at 10:20:21AM -0700, Steve Sistare wrote: > cprexec calls cprexec(). Syntax: > { 'command': 'cprexec', 'data': { 'argv': [ 'str' ] } } > > Add the restart mode: > { 'enum': 'CprMode', 'data': [ 'reboot', 'restart' ] } > > Signed-off-by: Steve Sistare <steven.sist...@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); > +}
Why do you need both qmp_cprexec() and cprexec()? Can you just name it qmp_cprexec() in cpr.c from the get-go, rather than having to add a one-line wrapper in qmp-cmds.c? -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org