firecracker-microvm / firecracker-microvm/firecracker
Firecracker doesn't close when running `poweroff` in the guest
Open
Priority: Low
Status: Parked
Type: Bug
- Dominant language
- Rust
- Stars
- 36.7k
- Forks
- 2.6k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 58
Description
After running `halt` or `poweroff` in the guest the guest kernel halts, but the Firecracker process continues to run.
The problem is that we don't receive a `KVM_EXIT_HLT` signal from KVM. Seems related to this [if statement](https://github.com/torvalds/linux/blob/359c92c02bfae1a6f1e8e37c298e518fd256642c/arch/x86/kvm/x86.c#L7395) in the kernel.
There might be a problem with the way we configure the lapic.
I Tested it on host 4.15 with guest 4.15 and host 5.5 with guest 5.5 and it reproduced in both cases.
Contributor guide
Assessment
This issue has not been assessed yet.