pub enum PsciFunction {
Version,
CpuOff,
CpuOn {
target_cpu: u64,
entry_point: u64,
context_id: u64,
},
AffinityInfo {
target_cpu: u64,
lowest_affinity_level: u32,
},
MigrateInfoType,
SystemOff,
SystemReset,
Features {
target_fn: u32,
},
}Expand description
Recognized PSCI function names — the dispatcher emits one of these for every known ID.
Variants§
Version
PSCI_VERSION — return the PSCI version (1.1).
CpuOff
CPU_OFF — park the calling vCPU.
CpuOn
CPU_ON — bring up a secondary vCPU.
Fields
AffinityInfo
AFFINITY_INFO — query a vCPU’s PSCI state.
MigrateInfoType
MIGRATE_INFO_TYPE — squib always returns 2 (TOS not present).
SystemOff
SYSTEM_OFF — guest powered down.
SystemReset
SYSTEM_RESET — guest requested reset.
Features
PSCI_FEATURES — query whether a PSCI function is implemented.
Trait Implementations§
Source§impl Clone for PsciFunction
impl Clone for PsciFunction
Source§fn clone(&self) -> PsciFunction
fn clone(&self) -> PsciFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PsciFunction
impl Debug for PsciFunction
Source§impl Hash for PsciFunction
impl Hash for PsciFunction
Source§impl PartialEq for PsciFunction
impl PartialEq for PsciFunction
Source§fn eq(&self, other: &PsciFunction) -> bool
fn eq(&self, other: &PsciFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PsciFunction
impl Eq for PsciFunction
impl StructuralPartialEq for PsciFunction
Auto Trait Implementations§
impl Freeze for PsciFunction
impl RefUnwindSafe for PsciFunction
impl Send for PsciFunction
impl Sync for PsciFunction
impl Unpin for PsciFunction
impl UnsafeUnpin for PsciFunction
impl UnwindSafe for PsciFunction
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