Struct x86defs::tdx::TdgMemPageGpaAttr
source · pub struct TdgMemPageGpaAttr(/* private fields */);
Expand description
Corresponds to GPA_ATTR, which is used as input to TDG.MEM.PAGE.ATTR.WR and returned from TDG.MEM.PAGE.ATTR.RD.
Implementations§
source§impl TdgMemPageGpaAttr
impl TdgMemPageGpaAttr
sourcepub const fn l1(&self) -> GpaVmAttributes
pub const fn l1(&self) -> GpaVmAttributes
represents L1 vm aka VTL2
Bits: 0..16
sourcepub const fn with_l1(self, value: GpaVmAttributes) -> Self
pub const fn with_l1(self, value: GpaVmAttributes) -> Self
represents L1 vm aka VTL2
Bits: 0..16
sourcepub fn set_l1(&mut self, value: GpaVmAttributes)
pub fn set_l1(&mut self, value: GpaVmAttributes)
represents L1 vm aka VTL2
Bits: 0..16
sourcepub const fn l2_vm1(&self) -> GpaVmAttributes
pub const fn l2_vm1(&self) -> GpaVmAttributes
Represetns L2 vm #1 which we use as VTL0
Bits: 16..32
sourcepub const fn with_l2_vm1(self, value: GpaVmAttributes) -> Self
pub const fn with_l2_vm1(self, value: GpaVmAttributes) -> Self
Represetns L2 vm #1 which we use as VTL0
Bits: 16..32
sourcepub fn set_l2_vm1(&mut self, value: GpaVmAttributes)
pub fn set_l2_vm1(&mut self, value: GpaVmAttributes)
Represetns L2 vm #1 which we use as VTL0
Bits: 16..32
sourcepub const fn l2_vm2(&self) -> GpaVmAttributes
pub const fn l2_vm2(&self) -> GpaVmAttributes
Represents L2 vm #2 which we use as VTL1
Bits: 32..48
sourcepub const fn with_l2_vm2(self, value: GpaVmAttributes) -> Self
pub const fn with_l2_vm2(self, value: GpaVmAttributes) -> Self
Represents L2 vm #2 which we use as VTL1
Bits: 32..48
sourcepub fn set_l2_vm2(&mut self, value: GpaVmAttributes)
pub fn set_l2_vm2(&mut self, value: GpaVmAttributes)
Represents L2 vm #2 which we use as VTL1
Bits: 32..48
sourcepub const fn l2_vm3(&self) -> GpaVmAttributes
pub const fn l2_vm3(&self) -> GpaVmAttributes
Bits: 48..64
sourcepub const fn with_l2_vm3(self, value: GpaVmAttributes) -> Self
pub const fn with_l2_vm3(self, value: GpaVmAttributes) -> Self
Bits: 48..64
sourcepub fn set_l2_vm3(&mut self, value: GpaVmAttributes)
pub fn set_l2_vm3(&mut self, value: GpaVmAttributes)
Bits: 48..64
Trait Implementations§
source§impl Clone for TdgMemPageGpaAttr
impl Clone for TdgMemPageGpaAttr
source§fn clone(&self) -> TdgMemPageGpaAttr
fn clone(&self) -> TdgMemPageGpaAttr
Returns a copy of the value. Read more
1.0.0 · 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 TdgMemPageGpaAttr
impl Debug for TdgMemPageGpaAttr
source§impl Default for TdgMemPageGpaAttr
impl Default for TdgMemPageGpaAttr
source§impl From<TdgMemPageGpaAttr> for u64
impl From<TdgMemPageGpaAttr> for u64
source§fn from(v: TdgMemPageGpaAttr) -> u64
fn from(v: TdgMemPageGpaAttr) -> u64
Converts to this type from the input type.
source§impl From<u64> for TdgMemPageGpaAttr
impl From<u64> for TdgMemPageGpaAttr
source§impl PartialEq for TdgMemPageGpaAttr
impl PartialEq for TdgMemPageGpaAttr
impl Copy for TdgMemPageGpaAttr
impl Eq for TdgMemPageGpaAttr
impl StructuralPartialEq for TdgMemPageGpaAttr
Auto Trait Implementations§
impl Freeze for TdgMemPageGpaAttr
impl RefUnwindSafe for TdgMemPageGpaAttr
impl Send for TdgMemPageGpaAttr
impl Sync for TdgMemPageGpaAttr
impl Unpin for TdgMemPageGpaAttr
impl UnwindSafe for TdgMemPageGpaAttr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)