cloud-hypervisor/vmm/src
Rob Bradford 121729a3b0 vmm: Split signal handling for VM and VMM signals
The VM specific signal (currently only SIGWINCH) should only be handled
when the VM is running.

The generic VMM signals (SIGINT and SIGTERM) need handling at all times.

Split the signal handling into two separate threads which have differing
lifetimes.

Tested by:
1.) Boot full VM and check resize handling (SIGWINCH) works & sending
    SIGTERM leads to cleanup (tested that API socket is removed.)
2.) Start without a VM and send SIGTERM/SIGINT and observe cleanup (API
    socket removed)
3.) Boot full VM, delete VM and observe 2.) holds.
4.) Boot full VM, delete VM, recreate VM and observe 1.) holds.

Fixes: #4269

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2022-07-08 15:15:46 +01:00
..
api vmm: drop Sync+Send bounds for EndpointHandler 2022-06-20 23:28:57 +01:00
acpi.rs aarch64: Align the data types in layout 2022-04-08 11:08:43 -07:00
clone3.rs vmm: notify virtio-console of pty resizes 2021-09-14 15:43:25 +01:00
config.rs build: Fix beta clippy issue (derive_partial_eq_without_eq) 2022-06-30 20:50:45 +01:00
coredump.rs vmm: Fix clippy issues under "guest_debug" feature 2022-06-08 11:40:56 +01:00
cpu.rs vmm: Set MADT "Online Capable" flag 2022-07-01 18:45:05 +01:00
device_manager.rs pci, vmm: Defer mapping VFIO MMIO regions on restore 2022-06-09 09:19:58 +02:00
device_tree.rs cargo: Clean up serde dependencies 2022-05-18 08:21:19 +02:00
gdb.rs build: Fix beta clippy issue (needless_return) 2022-06-30 20:50:45 +01:00
interrupt.rs vmm: Move GIC unit test to hypervisor crate 2022-06-06 10:17:26 +08:00
lib.rs vmm: Split signal handling for VM and VMM signals 2022-07-08 15:15:46 +01:00
memory_manager.rs vmm: save guest memory for coredump 2022-05-30 13:41:40 +02:00
migration.rs vmm: add GuestDebuggable trait 2022-05-30 13:41:40 +02:00
pci_segment.rs arch, devices, vmm: Remove "acpi" feature gate 2022-03-28 09:18:29 -07:00
seccomp_filters.rs virtio-devices, vmm: Remove unused macro rules 2022-05-20 09:59:43 +01:00
serial_buffer.rs vmm: Refactor serial buffer to allow flush on PTY when writable 2021-09-27 14:18:21 +01:00
serial_manager.rs build: Fix beta clippy issue (derive_partial_eq_without_eq) 2022-06-30 20:50:45 +01:00
sigwinch_listener.rs vmm: Fix panic in SIGWINCH listener thread when no seccomp filter set 2021-11-16 14:28:02 +00:00
vm.rs vmm: Split signal handling for VM and VMM signals 2022-07-08 15:15:46 +01:00