[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [PATCH v2] bhyve: implement domainShutdown
- From: Roman Bogorodskiy <bogorodskiy gmail com>
- To: libvir-list redhat com
- Subject: Re: [libvirt] [PATCH v2] bhyve: implement domainShutdown
- Date: Wed, 4 May 2016 14:13:20 +0300
Roman Bogorodskiy wrote:
> Bhyve supports ACPI shutdown by issuing SIGTERM signal to the bhyve
> process. Add the bhyveDomainShutdown() function and
> virBhyveProcessShutdown() helper function that just sends SIGTERM to
> VM's bhyve process. If a guest supports ACPI shutdown then process
> will be terminated and this event will be noticed by the bhyve monitor
> code that will handle setting proper status and clean up VM's resources.
>
> Also, remove usage of virProcessKillPainfully() from domainDestroy.
> First, it sends SIGTERM to the process that actually triggers ACPI reset
> and that's not we want to do. Second, we're doing bhyvectl --destroy
> later and it kills bhyve process, so there's no need to manually kill
> it.
> ---
> Changes from v1:
>
> - Sending SIGKILL dropped completely for destroy due to reasons described
> in the commit message. This is mainly based on the results of this (ongoing)
> discussion:
>
> https://lists.freebsd.org/pipermail/freebsd-virtualization/2016-April/004348.html
>
> src/bhyve/bhyve_driver.c | 27 +++++++++++++++++++++++++++
> src/bhyve/bhyve_process.c | 39 +++++++++++++++++++++++++++------------
> src/bhyve/bhyve_process.h | 2 ++
> 3 files changed, 56 insertions(+), 12 deletions(-)
ping?
Roman Bogorodskiy
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]