Skip to content

Enable pausing and resuming VCPUs at the VM level#387

Merged
Lencerf merged 3 commits intogoogle:mainfrom
Lencerf:feat/vm-pause-resume
Feb 4, 2026
Merged

Enable pausing and resuming VCPUs at the VM level#387
Lencerf merged 3 commits intogoogle:mainfrom
Lencerf:feat/vm-pause-resume

Conversation

@Lencerf
Copy link
Collaborator

@Lencerf Lencerf commented Feb 4, 2026

No description provided.

Extract the VCPU initialization sequence from the main loop in
`run_vcpu_inner` into a dedicated `boot_init` function.

Similarly, move the logic for halting other VCPUs upon exit into a
new `stop_other_vcpus` helper function.

Signed-off-by: Changyuan Lyu <changyuanl@google.com>
Introduce `VmEntry::Pause` and `VmExit::Paused` to enable pausing and
resuming an individual VCPU.

Signed-off-by: Changyuan Lyu <changyuanl@google.com>
Enable pausing and resuming VCPUs at the VM level.

Signed-off-by: Changyuan Lyu <changyuanl@google.com>
@coveralls
Copy link

coveralls commented Feb 4, 2026

Pull Request Test Coverage Report for Build 21661986443

Details

  • 0 of 98 (0.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.06%) to 26.38%

Changes Missing Coverage Covered Lines Changed/Added Lines %
alioth/src/hv/hvf/vcpu/vcpu.rs 0 1 0.0%
alioth/src/hv/kvm/vcpu/vcpu_x86_64.rs 0 4 0.0%
alioth/src/hv/kvm/vcpu/vcpu.rs 0 6 0.0%
alioth/src/board/board.rs 0 87 0.0%
Totals Coverage Status
Change from base Build 21661496667: -0.06%
Covered Lines: 3608
Relevant Lines: 14157

💛 - Coveralls

@Lencerf Lencerf merged commit 772578b into google:main Feb 4, 2026
5 checks passed
@Lencerf Lencerf deleted the feat/vm-pause-resume branch February 4, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants