pub struct TdCtls(/* private fields */);Expand description
The TDCS TD_CTLS TD-scope control field, accessed via TDG.VM.RD and
TDG.VM.WR.
Implementations§
Source§impl TdCtls
impl TdCtls
Sourcepub const fn pending_ve_disable(&self) -> bool
pub const fn pending_ve_disable(&self) -> bool
PENDING_VE_DISABLE
Bits: 0..1
Sourcepub const fn with_pending_ve_disable_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_pending_ve_disable_checked( self, value: bool, ) -> Result<Self, ()>
PENDING_VE_DISABLE
Bits: 0..1
Sourcepub const fn with_pending_ve_disable(self, value: bool) -> Self
pub const fn with_pending_ve_disable(self, value: bool) -> Self
PENDING_VE_DISABLE
Bits: 0..1
Sourcepub const fn set_pending_ve_disable(&mut self, value: bool)
pub const fn set_pending_ve_disable(&mut self, value: bool)
PENDING_VE_DISABLE
Bits: 0..1
Sourcepub const fn set_pending_ve_disable_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_pending_ve_disable_checked( &mut self, value: bool, ) -> Result<(), ()>
PENDING_VE_DISABLE
Bits: 0..1
Sourcepub const fn enum_topology(&self) -> bool
pub const fn enum_topology(&self) -> bool
ENUM_TOPOLOGY
Bits: 1..2
Sourcepub const fn with_enum_topology_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_enum_topology_checked(self, value: bool) -> Result<Self, ()>
ENUM_TOPOLOGY
Bits: 1..2
Sourcepub const fn with_enum_topology(self, value: bool) -> Self
pub const fn with_enum_topology(self, value: bool) -> Self
ENUM_TOPOLOGY
Bits: 1..2
Sourcepub const fn set_enum_topology(&mut self, value: bool)
pub const fn set_enum_topology(&mut self, value: bool)
ENUM_TOPOLOGY
Bits: 1..2
Sourcepub const fn set_enum_topology_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_enum_topology_checked(&mut self, value: bool) -> Result<(), ()>
ENUM_TOPOLOGY
Bits: 1..2
Sourcepub const fn virt_cpuid2(&self) -> bool
pub const fn virt_cpuid2(&self) -> bool
VIRT_CPUID2
Bits: 2..3
Sourcepub const fn with_virt_cpuid2_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_virt_cpuid2_checked(self, value: bool) -> Result<Self, ()>
VIRT_CPUID2
Bits: 2..3
Sourcepub const fn with_virt_cpuid2(self, value: bool) -> Self
pub const fn with_virt_cpuid2(self, value: bool) -> Self
VIRT_CPUID2
Bits: 2..3
Sourcepub const fn set_virt_cpuid2(&mut self, value: bool)
pub const fn set_virt_cpuid2(&mut self, value: bool)
VIRT_CPUID2
Bits: 2..3
Sourcepub const fn set_virt_cpuid2_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_virt_cpuid2_checked(&mut self, value: bool) -> Result<(), ()>
VIRT_CPUID2
Bits: 2..3
Sourcepub const fn with_reduce_ve_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_reduce_ve_checked(self, value: bool) -> Result<Self, ()>
REDUCE_VE
Bits: 3..4
Sourcepub const fn with_reduce_ve(self, value: bool) -> Self
pub const fn with_reduce_ve(self, value: bool) -> Self
REDUCE_VE
Bits: 3..4
Sourcepub const fn set_reduce_ve(&mut self, value: bool)
pub const fn set_reduce_ve(&mut self, value: bool)
REDUCE_VE
Bits: 3..4
Sourcepub const fn set_reduce_ve_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_reduce_ve_checked(&mut self, value: bool) -> Result<(), ()>
REDUCE_VE
Bits: 3..4
Sourcepub const fn enable_hw_seal_keys(&self) -> bool
pub const fn enable_hw_seal_keys(&self) -> bool
ENABLE_HW_SEAL_KEYS - opts the TD into hardware-bound seal keys
returned by TDG.MR.KEY.GET, even when
CONFIG_FLAGS.SEAL_KEY_SUPPORT is not set.
Bits: 4..5
Sourcepub const fn with_enable_hw_seal_keys_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_enable_hw_seal_keys_checked( self, value: bool, ) -> Result<Self, ()>
ENABLE_HW_SEAL_KEYS - opts the TD into hardware-bound seal keys
returned by TDG.MR.KEY.GET, even when
CONFIG_FLAGS.SEAL_KEY_SUPPORT is not set.
Bits: 4..5
Sourcepub const fn with_enable_hw_seal_keys(self, value: bool) -> Self
pub const fn with_enable_hw_seal_keys(self, value: bool) -> Self
ENABLE_HW_SEAL_KEYS - opts the TD into hardware-bound seal keys
returned by TDG.MR.KEY.GET, even when
CONFIG_FLAGS.SEAL_KEY_SUPPORT is not set.
Bits: 4..5
Sourcepub const fn set_enable_hw_seal_keys(&mut self, value: bool)
pub const fn set_enable_hw_seal_keys(&mut self, value: bool)
ENABLE_HW_SEAL_KEYS - opts the TD into hardware-bound seal keys
returned by TDG.MR.KEY.GET, even when
CONFIG_FLAGS.SEAL_KEY_SUPPORT is not set.
Bits: 4..5
Sourcepub const fn set_enable_hw_seal_keys_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_enable_hw_seal_keys_checked( &mut self, value: bool, ) -> Result<(), ()>
ENABLE_HW_SEAL_KEYS - opts the TD into hardware-bound seal keys
returned by TDG.MR.KEY.GET, even when
CONFIG_FLAGS.SEAL_KEY_SUPPORT is not set.
Bits: 4..5
Sourcepub const fn with_lock_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_lock_checked(self, value: bool) -> Result<Self, ()>
LOCK - once set, TD_CTLS becomes read-only.
Bits: 63..64
Sourcepub const fn with_lock(self, value: bool) -> Self
pub const fn with_lock(self, value: bool) -> Self
LOCK - once set, TD_CTLS becomes read-only.
Bits: 63..64