vmm: don't call notify_guest_clock_paused when Hyper-V emulation is on
We turn on that emulation for Windows. Windows does not have KVM's PV
clock, so calling notify_guest_clock_paused results in an error.
@@ -1357,10 +1357,15 @@ impl Pausable for CpuManager {
let mut vcpu = vcpu.lock().unwrap();
vcpu.pause()?;
#[cfg(target_arch = "x86_64")]
+ if !self.config.kvm_hyperv {
vcpu.vcpu.notify_guest_clock_paused().map_err(|e| {
- MigratableError::Pause(anyhow!("Could not notify guest it has been paused {:?}", e))
+ MigratableError::Pause(anyhow!(
+ "Could not notify guest it has been paused {:?}",
+ e
+ ))
})?;
}
+ }
Ok(())
}
