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

Method get_dirty_log

hypervisor/src/kvm/mod.rs:1306–1310  ·  view source on GitHub ↗

Get dirty pages bitmap (one bit per page)

(&self, slot: u32, _base_gpa: u64, memory_size: u64)

Source from the content-addressed store, hash-verified

1304 /// Get dirty pages bitmap (one bit per page)
1305 ///
1306 fn get_dirty_log(&self, slot: u32, _base_gpa: u64, memory_size: u64) -> vm::Result<Vec<u64>> {
1307 self.fd
1308 .get_dirty_log(slot, memory_size as usize)
1309 .map_err(|e| vm::HypervisorVmError::GetDirtyLog(e.into()))
1310 }
1311
1312 ///
1313 /// Initialize TDX for this VM

Callers 1

dirty_logMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected