MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / get_clock

Method get_clock

hypervisor/src/kvm/mod.rs:1222–1228  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1220 /// Retrieve guest clock.
1221 #[cfg(target_arch = "x86_64")]
1222 fn get_clock(&self) -> vm::Result<ClockData> {
1223 Ok(self
1224 .fd
1225 .get_clock()
1226 .map_err(|e| vm::HypervisorVmError::GetClock(e.into()))?
1227 .into())
1228 }
1229
1230 /// Set guest clock.
1231 #[cfg(target_arch = "x86_64")]

Callers 1

pauseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected