Struct x86defs::snp::SevStatusMsr
source · pub struct SevStatusMsr(/* private fields */);
Implementations§
source§impl SevStatusMsr
impl SevStatusMsr
sourcepub const fn sev_enabled(&self) -> bool
pub const fn sev_enabled(&self) -> bool
Bits: 0..1
sourcepub const fn with_sev_enabled(self, value: bool) -> Self
pub const fn with_sev_enabled(self, value: bool) -> Self
Bits: 0..1
sourcepub fn set_sev_enabled(&mut self, value: bool)
pub fn set_sev_enabled(&mut self, value: bool)
Bits: 0..1
sourcepub const fn es_enabled(&self) -> bool
pub const fn es_enabled(&self) -> bool
Bits: 1..2
sourcepub const fn with_es_enabled(self, value: bool) -> Self
pub const fn with_es_enabled(self, value: bool) -> Self
Bits: 1..2
sourcepub fn set_es_enabled(&mut self, value: bool)
pub fn set_es_enabled(&mut self, value: bool)
Bits: 1..2
sourcepub const fn snp_enabled(&self) -> bool
pub const fn snp_enabled(&self) -> bool
Bits: 2..3
sourcepub const fn with_snp_enabled(self, value: bool) -> Self
pub const fn with_snp_enabled(self, value: bool) -> Self
Bits: 2..3
sourcepub fn set_snp_enabled(&mut self, value: bool)
pub fn set_snp_enabled(&mut self, value: bool)
Bits: 2..3
sourcepub const fn reflect_vc(&self) -> bool
pub const fn reflect_vc(&self) -> bool
Bits: 4..5
sourcepub const fn with_reflect_vc(self, value: bool) -> Self
pub const fn with_reflect_vc(self, value: bool) -> Self
Bits: 4..5
sourcepub fn set_reflect_vc(&mut self, value: bool)
pub fn set_reflect_vc(&mut self, value: bool)
Bits: 4..5
sourcepub const fn restrict_injection(&self) -> bool
pub const fn restrict_injection(&self) -> bool
Bits: 5..6
sourcepub const fn with_restrict_injection(self, value: bool) -> Self
pub const fn with_restrict_injection(self, value: bool) -> Self
Bits: 5..6
sourcepub fn set_restrict_injection(&mut self, value: bool)
pub fn set_restrict_injection(&mut self, value: bool)
Bits: 5..6
sourcepub const fn alternate_injection(&self) -> bool
pub const fn alternate_injection(&self) -> bool
Bits: 6..7
sourcepub const fn with_alternate_injection(self, value: bool) -> Self
pub const fn with_alternate_injection(self, value: bool) -> Self
Bits: 6..7
sourcepub fn set_alternate_injection(&mut self, value: bool)
pub fn set_alternate_injection(&mut self, value: bool)
Bits: 6..7
sourcepub const fn debug_swap(&self) -> bool
pub const fn debug_swap(&self) -> bool
Bits: 7..8
sourcepub const fn with_debug_swap(self, value: bool) -> Self
pub const fn with_debug_swap(self, value: bool) -> Self
Bits: 7..8
sourcepub fn set_debug_swap(&mut self, value: bool)
pub fn set_debug_swap(&mut self, value: bool)
Bits: 7..8
sourcepub const fn prevent_host_ibs(&self) -> bool
pub const fn prevent_host_ibs(&self) -> bool
Bits: 8..9
sourcepub const fn with_prevent_host_ibs(self, value: bool) -> Self
pub const fn with_prevent_host_ibs(self, value: bool) -> Self
Bits: 8..9
sourcepub fn set_prevent_host_ibs(&mut self, value: bool)
pub fn set_prevent_host_ibs(&mut self, value: bool)
Bits: 8..9
sourcepub const fn snp_btb_isolation(&self) -> bool
pub const fn snp_btb_isolation(&self) -> bool
Bits: 9..10
sourcepub const fn with_snp_btb_isolation(self, value: bool) -> Self
pub const fn with_snp_btb_isolation(self, value: bool) -> Self
Bits: 9..10
sourcepub fn set_snp_btb_isolation(&mut self, value: bool)
pub fn set_snp_btb_isolation(&mut self, value: bool)
Bits: 9..10
sourcepub const fn secure_tsc(&self) -> bool
pub const fn secure_tsc(&self) -> bool
Bits: 11..12
sourcepub const fn with_secure_tsc(self, value: bool) -> Self
pub const fn with_secure_tsc(self, value: bool) -> Self
Bits: 11..12
sourcepub fn set_secure_tsc(&mut self, value: bool)
pub fn set_secure_tsc(&mut self, value: bool)
Bits: 11..12
sourcepub const fn vmsa_reg_prot(&self) -> bool
pub const fn vmsa_reg_prot(&self) -> bool
Bits: 16..17
sourcepub const fn with_vmsa_reg_prot(self, value: bool) -> Self
pub const fn with_vmsa_reg_prot(self, value: bool) -> Self
Bits: 16..17
sourcepub fn set_vmsa_reg_prot(&mut self, value: bool)
pub fn set_vmsa_reg_prot(&mut self, value: bool)
Bits: 16..17
Trait Implementations§
source§impl AsBytes for SevStatusMsrwhere
u64: AsBytes,
impl AsBytes for SevStatusMsrwhere
u64: AsBytes,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
source§impl Clone for SevStatusMsr
impl Clone for SevStatusMsr
source§fn clone(&self) -> SevStatusMsr
fn clone(&self) -> SevStatusMsr
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 SevStatusMsr
impl Debug for SevStatusMsr
source§impl Default for SevStatusMsr
impl Default for SevStatusMsr
source§impl From<SevStatusMsr> for u64
impl From<SevStatusMsr> for u64
source§fn from(v: SevStatusMsr) -> u64
fn from(v: SevStatusMsr) -> u64
Converts to this type from the input type.
source§impl From<u64> for SevStatusMsr
impl From<u64> for SevStatusMsr
source§impl FromBytes for SevStatusMsrwhere
u64: FromBytes,
impl FromBytes for SevStatusMsrwhere
u64: FromBytes,
§fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeroes for SevStatusMsrwhere
u64: FromZeroes,
impl FromZeroes for SevStatusMsrwhere
u64: FromZeroes,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Box<Self>where
Self: Sized,
fn new_box_zeroed() -> Box<Self>where
Self: Sized,
Creates a
Box<Self>
from zeroed bytes. Read moresource§impl PartialEq for SevStatusMsr
impl PartialEq for SevStatusMsr
impl Copy for SevStatusMsr
impl Eq for SevStatusMsr
impl StructuralPartialEq for SevStatusMsr
Auto Trait Implementations§
impl Freeze for SevStatusMsr
impl RefUnwindSafe for SevStatusMsr
impl Send for SevStatusMsr
impl Sync for SevStatusMsr
impl Unpin for SevStatusMsr
impl UnwindSafe for SevStatusMsr
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
)