Skip to main content

Run

Struct Run 

Source
pub struct Run { /* private fields */ }
Expand description

The structure holds data passsed between the Host and the RMM on Realm Execution Context (REC) entry and exit.

Implementations§

Source§

impl Run

Source

pub fn entry_flags(&self) -> EntryFlag

Source

pub fn entry_gpr(&self, idx: usize) -> Result<u64, Error>

Source

pub fn entry_gic_lrs(&self) -> &[u64; 16]

Source

pub fn entry_gic_hcr(&self) -> u64

Source

pub fn exit_gic_lrs_mut(&mut self) -> &mut [u64; 16]

Source

pub fn set_imm(&mut self, imm: u16)

Source

pub fn set_exit_reason(&mut self, exit_reason: u8)

Source

pub fn set_esr(&mut self, esr: u64)

Source

pub fn set_far(&mut self, far: u64)

Source

pub fn set_hpfar(&mut self, hpfar: u64)

Source

pub fn set_gpr(&mut self, idx: usize, val: u64) -> Result<(), Error>

Source

pub fn set_ripas(&mut self, base: u64, top: u64, state: u8)

Source

pub fn set_gic_lrs(&mut self, src: &[u64], len: usize)

Source

pub fn set_gic_misr(&mut self, val: u64)

Source

pub fn set_gic_vmcr(&mut self, val: u64)

Source

pub fn set_gic_hcr(&mut self, val: u64)

Source

pub fn set_cntv_ctl(&mut self, val: u64)

Source

pub fn set_cntv_cval(&mut self, val: u64)

Source

pub fn set_cntp_ctl(&mut self, val: u64)

Source

pub fn set_cntp_cval(&mut self, val: u64)

Source

pub fn set_pmu_overflow(&mut self, val: bool)

Source

pub fn exit_reason(&self) -> u8

Source

pub fn gpr(&self, idx: usize) -> Result<u64, Error>

Source

pub fn ripas(&self) -> (u64, u64)

Source§

impl Run

Trait Implementations§

Source§

impl Clone for Run

Source§

fn clone(&self) -> Run

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Run

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Run

Source§

fn default() -> Run

Returns the “default value” for a type. Read more
Source§

impl RawPtr for Run

§

unsafe fn as_ref<'a, T>(addr: usize) -> &'a T
where T: RawPtr,

Safety Read more
§

unsafe fn as_mut<'a, T>(addr: usize) -> &'a mut T
where T: RawPtr,

Safety Read more
§

fn addr(&self) -> usize

Source§

impl SafetyAssured for Run

Source§

fn is_initialized(&self) -> bool

Checks if the instance is properly initialized. Read more
Source§

fn verify_ownership(&self) -> bool

Checks whether ownership rules are upheld for this instance, with a particular focus on instances that originate from raw pointers. Read more
Source§

impl SafetyChecked for Run

§

fn is_not_null(&self) -> bool

§

fn is_aligned(&self) -> bool

Source§

impl Copy for Run

Auto Trait Implementations§

§

impl Freeze for Run

§

impl RefUnwindSafe for Run

§

impl Send for Run

§

impl Sync for Run

§

impl Unpin for Run

§

impl UnsafeUnpin for Run

§

impl UnwindSafe for Run

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.