On a Thursday in 2025, Peter Krempa via Devel wrote:
>'virsh await' is a helper/syntax-sugar command which allows you to wait
>until a domain reaches a certain state. Currently this series implements
>conditions named 'domain-inactive' and 'guest-agent-available'.
>
>Peter Krempa (7):
> virthread: Register auto cleanup function for virMutex
> virthread: Add infrastructure for static virCond definitions
> virsh: cmdEvent: Ensure that event callbacks are unregistered before
> returning
> vshCommandRun: Convert to directly return the exit code
> vsh: Add support for commands with more return values
> virsh: Introduce 'await' command for waiting until target domain state
> is reached
> virsh: await: Introduce 'guest-agent-available' condition
>
> docs/manpages/virsh.rst | 30 ++++
> src/util/virthread.h | 7 +
> tools/virsh-domain-event.c | 321 ++++++++++++++++++++++++++++++++++++-
> tools/virsh.c | 4 +-
> tools/virt-admin.c | 4 +-
> tools/vsh.c | 46 ++++--
> tools/vsh.h | 3 +-
> 7 files changed, 398 insertions(+), 17 deletions(-)
>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Jano