#[repr(C)]pub enum MPState {
Runnable = 0,
Uninitialized = 1,
InitReceived = 2,
Halted = 3,
SipiReceived = 4,
Stopped = 5,
}Expand description
The MPState represents the state of a processor.
Variants§
Runnable = 0
the vcpu is currently running (x86/x86_64,arm/arm64)
Uninitialized = 1
the vcpu is an application processor (AP) which has not yet received an INIT signal (x86/x86_64)
InitReceived = 2
the vcpu has received an INIT signal, and is now ready for a SIPI (x86/x86_64)
Halted = 3
the vcpu has executed a HLT instruction and is waiting for an interrupt (x86/x86_64)
SipiReceived = 4
the vcpu has just received a SIPI (vector accessible via KVM_GET_VCPU_EVENTS) (x86/x86_64)
Stopped = 5
the vcpu is stopped (arm/arm64)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MPState
impl<'de> Deserialize<'de> for MPState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&MPState> for kvm_mp_state
impl From<&MPState> for kvm_mp_state
Source§impl From<&kvm_mp_state> for MPState
impl From<&kvm_mp_state> for MPState
Source§fn from(item: &kvm_mp_state) -> Self
fn from(item: &kvm_mp_state) -> Self
Converts to this type from the input type.
impl Copy for MPState
impl Eq for MPState
impl StructuralPartialEq for MPState
Auto Trait Implementations§
impl Freeze for MPState
impl RefUnwindSafe for MPState
impl Send for MPState
impl Sync for MPState
impl Unpin for MPState
impl UnwindSafe for MPState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more