Roman Bogorodskiy wrote:
Implement domain reboot using the guest agent. Implementation is very similar to the domain shutdown added earlier.
Also, change the VIR_DOMAIN_REBOOT_ACPI_POWER_BTN flag to VIR_DOMAIN_REBOOT_SIGNAL. Even though bhyve emulates the ACPI button, it's triggered by sending a signal to the bhyve process, so VIR_DOMAIN_REBOOT_SIGNAL looks like a more accurate description of communication between libvirt and bhyve.
Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com> --- src/bhyve/bhyve_driver.c | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-)
Sorry, I messed up with my patch directories and shell globs while sending this. This patch should be skipped. Patches 1/2 and 2/2 are valid. Roman