Save and restore per-vCPU state. For now only mp_state and all registers are saved. The set of saved items can be extended in future PRs if needed.
Implement bare bones vm::set_state and vm::restore_state and some basic testing.
Clean up the regs module a bit.
Save and restore of GIC will be implemented in a future PR. Same goes for proper integration testing.
Requirements
Before submitting your PR, please make sure you addressed the following
requirements:
[x] All commits in this PR are signed (with git commit -s), and the commit
message has max 60 characters for the summary and max 75 characters for each
description line.
[x] All added/changed functionality has a corresponding unit/integration
test.
[x] Any newly added unsafe code is properly documented.
Summary of the PR
mp_state
and all registers are saved. The set of saved items can be extended in future PRs if needed.vm::set_state
andvm::restore_state
and some basic testing.regs
module a bit.Save and restore of
GIC
will be implemented in a future PR. Same goes for proper integration testing.Requirements
Before submitting your PR, please make sure you addressed the following requirements:
git commit -s
), and the commit message has max 60 characters for the summary and max 75 characters for each description line.unsafe
code is properly documented.