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_checked(self, value: GpaVmAttributes) -> Result<Self, ()>
pub const fn with_l1_checked(self, value: GpaVmAttributes) -> Result<Self, ()>
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 const fn set_l1(&mut self, value: GpaVmAttributes)
pub const fn set_l1(&mut self, value: GpaVmAttributes)
represents L1 vm aka VTL2
Bits: 0..16
Sourcepub const fn set_l1_checked(&mut self, value: GpaVmAttributes) -> Result<(), ()>
pub const fn set_l1_checked(&mut self, value: GpaVmAttributes) -> Result<(), ()>
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_checked(
self,
value: GpaVmAttributes,
) -> Result<Self, ()>
pub const fn with_l2_vm1_checked( self, value: GpaVmAttributes, ) -> Result<Self, ()>
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 const fn set_l2_vm1(&mut self, value: GpaVmAttributes)
pub const fn set_l2_vm1(&mut self, value: GpaVmAttributes)
Represetns L2 vm #1 which we use as VTL0
Bits: 16..32
Sourcepub const fn set_l2_vm1_checked(
&mut self,
value: GpaVmAttributes,
) -> Result<(), ()>
pub const fn set_l2_vm1_checked( &mut self, value: GpaVmAttributes, ) -> Result<(), ()>
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_checked(
self,
value: GpaVmAttributes,
) -> Result<Self, ()>
pub const fn with_l2_vm2_checked( self, value: GpaVmAttributes, ) -> Result<Self, ()>
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 const fn set_l2_vm2(&mut self, value: GpaVmAttributes)
pub const fn set_l2_vm2(&mut self, value: GpaVmAttributes)
Represents L2 vm #2 which we use as VTL1
Bits: 32..48
Sourcepub const fn set_l2_vm2_checked(
&mut self,
value: GpaVmAttributes,
) -> Result<(), ()>
pub const fn set_l2_vm2_checked( &mut self, value: GpaVmAttributes, ) -> Result<(), ()>
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_checked(
self,
value: GpaVmAttributes,
) -> Result<Self, ()>
pub const fn with_l2_vm3_checked( self, value: GpaVmAttributes, ) -> Result<Self, ()>
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 const fn set_l2_vm3(&mut self, value: GpaVmAttributes)
pub const fn set_l2_vm3(&mut self, value: GpaVmAttributes)
Bits: 48..64
Sourcepub const fn set_l2_vm3_checked(
&mut self,
value: GpaVmAttributes,
) -> Result<(), ()>
pub const fn set_l2_vm3_checked( &mut self, value: GpaVmAttributes, ) -> Result<(), ()>
Bits: 48..64
Trait Implementations§
Source§impl Clone for TdgMemPageGpaAttr
impl Clone for TdgMemPageGpaAttr
Source§fn clone(&self) -> TdgMemPageGpaAttr
fn clone(&self) -> TdgMemPageGpaAttr
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more