[PATCH v3 0/7] qga/commands-posix: replace code duplicating commands with a helper

Andrey Drobyshev posted 7 patches 1 month, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240315122946.39168-1-andrey.drobyshev@virtuozzo.com
Maintainers: Michael Roth <michael.roth@amd.com>, Konstantin Kostiuk <kkostiuk@redhat.com>
There is a newer version of this series
qga/commands-posix.c | 404 +++++++++++++++++++------------------------
qga/commands-win32.c |   1 +
qga/qapi-schema.json |  12 +-
3 files changed, 193 insertions(+), 224 deletions(-)
[PATCH v3 0/7] qga/commands-posix: replace code duplicating commands with a helper
Posted by Andrey Drobyshev 1 month, 2 weeks ago
v2 -> v3:
  * Patch 2/7:
    - ga_pipe_read_str() helper now returns -errno in case of an error
      during read from pipe, so that the caller may use it to set
      error_setg_errno();
    - ga_pipe_read_str() allocates +1 additional byte to make the
      string read from pipe null-terminated on every iteration;
  * Patch 6/7: patch is rewritten to completely get rid of fork()/exec()
    when suspending via sysfs, it now simply uses g_file_set_contents()
    (suggested by Daniel);
  * Patch 7/7: cosmetic change: removed unneeded brackets in an
    expression.

v2: https://lists.nongnu.org/archive/html/qemu-devel/2024-03/msg00147.html

Andrey Drobyshev (7):
  qga: guest-get-fsinfo: add optional 'total-bytes-root' field
  qga: introduce ga_run_command() helper for guest cmd execution
  qga/commands-posix: qmp_guest_shutdown: use ga_run_command helper
  qga/commands-posix: qmp_guest_set_time: use ga_run_command helper
  qga/commands-posix: execute_fsfreeze_hook: use ga_run_command helper
  qga/commands-posix: don't do fork()/exec() when suspending via sysfs
  qga/commands-posix: qmp_guest_set_user_password: use ga_run_command
    helper

 qga/commands-posix.c | 404 +++++++++++++++++++------------------------
 qga/commands-win32.c |   1 +
 qga/qapi-schema.json |  12 +-
 3 files changed, 193 insertions(+), 224 deletions(-)

-- 
2.39.3