firecracker
firecracker copied to clipboard
Acpi poweroff feature
Reason for This PR
Support for ACPI shutdown added in Firecracker.
Description of Changes
In order to implement a graceful shutdown of the guest, two features were implemented:
- Send ACPI signal to the guest using fixed hardware method (according to the spec) when HTTP request is received by the API thread
- Detection of the guest's transition to soft-off state (S5) in order to stop Firecracker process gracefully
- [ ] This functionality can be added in
rust-vmm.
License Acceptance
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
PR Checklist
- [ ] All commits in this PR are signed (
git commit -s). - [ ] The issue which led to this PR has a clear conclusion.
- [ ] This PR follows the solution outlined in the related issue.
- [ ] The description of changes is clear and encompassing.
- [ ] Any required documentation changes (code and docs) are included in this PR.
- [ ] Any newly added
unsafecode is properly documented. - [ ] Any API changes follow the Runbook for Firecracker API changes.
- [ ] Any user-facing changes are mentioned in
CHANGELOG.md. - [ ] All added/changed functionality is tested.
Thank you so much for the comments you left above! I'll take each of them and improve the code accordingly!
Closing this in favor of https://github.com/firecracker-microvm/firecracker/pull/3190