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

Method get_fpu

hypervisor/src/kvm/mod.rs:2205–2211  ·  view source on GitHub ↗

Returns the floating point state (FPU) from the vCPU.

(&self)

Source from the content-addressed store, hash-verified

2203 /// Returns the floating point state (FPU) from the vCPU.
2204 ///
2205 fn get_fpu(&self) -> cpu::Result<FpuState> {
2206 Ok(self
2207 .fd
2208 .get_fpu()
2209 .map_err(|e| cpu::HypervisorCpuError::GetFloatingPointRegs(e.into()))?
2210 .into())
2211 }
2212
2213 #[cfg(target_arch = "x86_64")]
2214 ///

Callers 2

test_setup_fpuFunction · 0.45
stateMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_setup_fpuFunction · 0.36