@@ -373,8 +373,8 @@ pub trait InterruptHandle: Debug + Send + Sync {
373373 ///
374374 /// - If this is called while the vcpu is running, then it will interrupt the vcpu and return `true`.
375375 /// - If this is called while the vcpu is not running, (for example during a host call), the
376- /// vcpu will not immediately be interrupted, but will prevent the vcpu from running **the next time**
377- /// it's scheduled, and returns `false`.
376+ /// vcpu will not immediately be interrupted, but will prevent the vcpu from running **the next time**
377+ /// it's scheduled, and returns `false`.
378378 ///
379379 /// # Note
380380 /// This function will block for the duration of the time it takes for the vcpu thread to be interrupted.
@@ -384,8 +384,8 @@ pub trait InterruptHandle: Debug + Send + Sync {
384384 ///
385385 /// - If this is called while the vcpu is running, then it will interrupt the vcpu and return `true`.
386386 /// - If this is called while the vcpu is not running, (for example during a host call), the
387- /// vcpu will not immediately be interrupted, but will prevent the vcpu from running **the next time**
388- /// it's scheduled, and returns `false`.
387+ /// vcpu will not immediately be interrupted, but will prevent the vcpu from running **the next time**
388+ /// it's scheduled, and returns `false`.
389389 ///
390390 /// # Note
391391 /// This function will block for the duration of the time it takes for the vcpu thread to be interrupted.
@@ -407,7 +407,7 @@ pub(super) struct LinuxInterruptHandle {
407407 /// 1. The VCPU is running (generation N),
408408 /// 2. It gets cancelled,
409409 /// 3. Then quickly restarted (generation N+1),
410- /// before the original thread has observed that it was cancelled.
410+ /// before the original thread has observed that it was cancelled.
411411 ///
412412 /// Without this generation counter, the interrupt logic might assume the VCPU is still
413413 /// in the *original* run (generation N), see that it's `running`, and re-send the signal.
@@ -423,9 +423,9 @@ pub(super) struct LinuxInterruptHandle {
423423 /// `kill()` is called, and cleared when the vcpu is no longer running.
424424 /// This is used to
425425 /// 1. make sure stale signals do not interrupt the
426- /// the wrong vcpu (a vcpu may only be interrupted iff `cancel_requested` is true),
426+ /// the wrong vcpu (a vcpu may only be interrupted iff `cancel_requested` is true),
427427 /// 2. ensure that if a vm is killed while a host call is running,
428- /// the vm will not re-enter the guest after the host call returns.
428+ /// the vm will not re-enter the guest after the host call returns.
429429 cancel_requested : AtomicBool ,
430430 /// True when the debugger has requested the VM to be interrupted. Set immediately when
431431 /// `kill_from_debugger()` is called, and cleared when the vcpu is no longer running.
0 commit comments