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

Method get_sregs

hypervisor/src/kvm/mod.rs:2182–2188  ·  view source on GitHub ↗

Returns the vCPU special registers.

(&self)

Source from the content-addressed store, hash-verified

2180 /// Returns the vCPU special registers.
2181 ///
2182 fn get_sregs(&self) -> cpu::Result<SpecialRegisters> {
2183 Ok(self
2184 .fd
2185 .get_sregs()
2186 .map_err(|e| cpu::HypervisorCpuError::GetSpecialRegs(e.into()))?
2187 .into())
2188 }
2189
2190 #[cfg(target_arch = "x86_64")]
2191 ///

Callers 2

stateMethod · 0.45
setup_sev_snp_regsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected