[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 0/7] qga/commands-posix: replace code duplicating commands wit
From: |
Andrey Drobyshev |
Subject: |
[PATCH v3 0/7] qga/commands-posix: replace code duplicating commands with a helper |
Date: |
Fri, 15 Mar 2024 14:29:39 +0200 |
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
- [PATCH v3 0/7] qga/commands-posix: replace code duplicating commands with a helper,
Andrey Drobyshev <=