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

Method get_mp_state

hypervisor/src/kvm/mod.rs:2333–2339  ·  view source on GitHub ↗

Returns the vcpu's current "multiprocessing state".

(&self)

Source from the content-addressed store, hash-verified

2331 /// Returns the vcpu's current "multiprocessing state".
2332 ///
2333 fn get_mp_state(&self) -> cpu::Result<MpState> {
2334 Ok(self
2335 .fd
2336 .get_mp_state()
2337 .map_err(|e| cpu::HypervisorCpuError::GetMpState(e.into()))?
2338 .into())
2339 }
2340
2341 ///
2342 /// Sets the vcpu's current "multiprocessing state".

Callers 2

test_get_set_mpstateFunction · 0.45
stateMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_get_set_mpstateFunction · 0.36