@@ -378,8 +378,8 @@ pub trait InterruptHandle: Debug + Send + Sync {
378378 ///
379379 /// - If this is called while the vcpu is running, then it will interrupt the vcpu and return `true`.
380380 /// - If this is called while the vcpu is not running, (for example during a host call), the
381- /// vcpu will not immediately be interrupted, but will prevent the vcpu from running **the next time**
382- /// it's scheduled, and returns `false`.
381+ /// vcpu will not immediately be interrupted, but will prevent the vcpu from running **the next time**
382+ /// it's scheduled, and returns `false`.
383383 ///
384384 /// # Note
385385 /// This function will block for the duration of the time it takes for the vcpu thread to be interrupted.
@@ -389,8 +389,8 @@ pub trait InterruptHandle: Debug + Send + Sync {
389389 ///
390390 /// - If this is called while the vcpu is running, then it will interrupt the vcpu and return `true`.
391391 /// - If this is called while the vcpu is not running, (for example during a host call), the
392- /// vcpu will not immediately be interrupted, but will prevent the vcpu from running **the next time**
393- /// it's scheduled, and returns `false`.
392+ /// vcpu will not immediately be interrupted, but will prevent the vcpu from running **the next time**
393+ /// it's scheduled, and returns `false`.
394394 ///
395395 /// # Note
396396 /// This function will block for the duration of the time it takes for the vcpu thread to be interrupted.
@@ -412,7 +412,7 @@ pub(super) struct LinuxInterruptHandle {
412412 /// 1. The VCPU is running (generation N),
413413 /// 2. It gets cancelled,
414414 /// 3. Then quickly restarted (generation N+1),
415- /// before the original thread has observed that it was cancelled.
415+ /// before the original thread has observed that it was cancelled.
416416 ///
417417 /// Without this generation counter, the interrupt logic might assume the VCPU is still
418418 /// in the *original* run (generation N), see that it's `running`, and re-send the signal.
@@ -428,9 +428,9 @@ pub(super) struct LinuxInterruptHandle {
428428 /// `kill()` is called, and cleared when the vcpu is no longer running.
429429 /// This is used to
430430 /// 1. make sure stale signals do not interrupt the
431- /// the wrong vcpu (a vcpu may only be interrupted iff `cancel_requested` is true),
431+ /// the wrong vcpu (a vcpu may only be interrupted iff `cancel_requested` is true),
432432 /// 2. ensure that if a vm is killed while a host call is running,
433- /// the vm will not re-enter the guest after the host call returns.
433+ /// the vm will not re-enter the guest after the host call returns.
434434 cancel_requested : AtomicBool ,
435435 /// True when the debugger has requested the VM to be interrupted. Set immediately when
436436 /// `kill_from_debugger()` is called, and cleared when the vcpu is no longer running.
0 commit comments