We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c403628 commit ab32974Copy full SHA for ab32974
src/vmm/src/vstate/vcpu/mod.rs
@@ -296,8 +296,10 @@ impl Vcpu {
296
.send(VcpuResponse::Paused)
297
.expect("vcpu channel unexpectedly closed");
298
299
- // TODO: we should call `KVM_KVMCLOCK_CTRL` here to make sure
300
- // TODO continued: the guest soft lockup watchdog does not panic on Resume.
+ // Calling `KVM_KVMCLOCK_CTRL` to make sure the guest softlockup watchdog
+ // does not panic on resume, see https://docs.kernel.org/virt/kvm/api.html .
301
+ // Unwrapping to exit immediately if we fail to do that.
302
+ self.kvm_vcpu.fd.kvmclock_ctrl().unwrap();
303
304
// Move to 'paused' state.
305
state = StateMachine::next(Self::paused);
0 commit comments