pub struct VcpuState {
pub mpidr: u64,
pub regs: GpRegs,
pub fp_regs: FpSimdRegs,
pub sys_regs: BTreeMap<u64, u64>,
pub psci_state: PsciVcpuState,
}Expand description
Per-vCPU state blob.
Pin per 10-data-model.md § 5.
Fields§
§mpidr: u64MPIDR_EL1 affinity bits assigned at create time.
regs: GpRegsGeneral-purpose register file.
fp_regs: FpSimdRegsFP/SIMD register file.
sys_regs: BTreeMap<u64, u64>Curated sysreg subset — BTreeMap<u64, u64> so the encoding is order-stable.
The key is the squib_arch::SysReg’s as_encoded() value (a u64 packed
representation).
psci_state: PsciVcpuStatePSCI affinity state at save time.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VcpuState
impl<'de> Deserialize<'de> for VcpuState
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
impl Eq for VcpuState
impl StructuralPartialEq for VcpuState
Auto Trait Implementations§
impl Freeze for VcpuState
impl RefUnwindSafe for VcpuState
impl Send for VcpuState
impl Sync for VcpuState
impl Unpin for VcpuState
impl UnsafeUnpin for VcpuState
impl UnwindSafe for VcpuState
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