@@ -378,8 +378,8 @@ pub trait InterruptHandle: Debug + Send + Sync {
378
378
///
379
379
/// - If this is called while the vcpu is running, then it will interrupt the vcpu and return `true`.
380
380
/// - 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`.
383
383
///
384
384
/// # Note
385
385
/// 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 {
389
389
///
390
390
/// - If this is called while the vcpu is running, then it will interrupt the vcpu and return `true`.
391
391
/// - 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`.
394
394
///
395
395
/// # Note
396
396
/// 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 {
412
412
/// 1. The VCPU is running (generation N),
413
413
/// 2. It gets cancelled,
414
414
/// 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.
416
416
///
417
417
/// Without this generation counter, the interrupt logic might assume the VCPU is still
418
418
/// in the *original* run (generation N), see that it's `running`, and re-send the signal.
@@ -428,9 +428,9 @@ pub(super) struct LinuxInterruptHandle {
428
428
/// `kill()` is called, and cleared when the vcpu is no longer running.
429
429
/// This is used to
430
430
/// 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),
432
432
/// 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.
434
434
cancel_requested : AtomicBool ,
435
435
/// True when the debugger has requested the VM to be interrupted. Set immediately when
436
436
/// `kill_from_debugger()` is called, and cleared when the vcpu is no longer running.
0 commit comments