Method
set_clock
(&self, data: &ClockData)
Source from the content-addressed store, hash-verified
| 1230 | /// Set guest clock. |
| 1231 | #[cfg(target_arch = "x86_64")] |
| 1232 | fn set_clock(&self, data: &ClockData) -> vm::Result<()> { |
| 1233 | let data = (*data).into(); |
| 1234 | self.fd |
| 1235 | .set_clock(&data) |
| 1236 | .map_err(|e| vm::HypervisorVmError::SetClock(e.into())) |
| 1237 | } |
| 1238 | |
| 1239 | /// Create a device that is used for passthrough |
| 1240 | fn create_passthrough_device(&self) -> vm::Result<VfioDeviceFd> { |
Tested by
no test coverage detected