On 6/14/26 08:56, Roman Bogorodskiy wrote:
Implement shutdown using a guest agent. Implementation and behaviour is very similar to the one found in the qemu driver.
The bhyveDomainShutdownFlags() function now supports the VIR_DOMAIN_SHUTDOWN_SIGNAL and VIR_DOMAIN_SHUTDOWN_GUEST_AGENT. If flags were not specified, try the agent first, and if it does not work, proceed with the signal.
As we do not expect a response from the agent shutdown command, we do not check qemuAgentShutdown()'s return value. Assume that the command failed if the agent did not receive EOF, thus "priv->agent" is not NULL.
Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com> --- src/bhyve/bhyve_driver.c | 69 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 2 deletions(-)
Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Michal