Struct x86defs::snp::SevFeatures
source · pub struct SevFeatures(/* private fields */);
Implementations§
source§impl SevFeatures
impl SevFeatures
sourcepub const fn reflect_vc(&self) -> bool
pub const fn reflect_vc(&self) -> bool
Bits: 2..3
sourcepub const fn with_reflect_vc(self, value: bool) -> Self
pub const fn with_reflect_vc(self, value: bool) -> Self
Bits: 2..3
sourcepub fn set_reflect_vc(&mut self, value: bool)
pub fn set_reflect_vc(&mut self, value: bool)
Bits: 2..3
sourcepub const fn restrict_injection(&self) -> bool
pub const fn restrict_injection(&self) -> bool
Bits: 3..4
sourcepub const fn with_restrict_injection(self, value: bool) -> Self
pub const fn with_restrict_injection(self, value: bool) -> Self
Bits: 3..4
sourcepub fn set_restrict_injection(&mut self, value: bool)
pub fn set_restrict_injection(&mut self, value: bool)
Bits: 3..4
sourcepub const fn alternate_injection(&self) -> bool
pub const fn alternate_injection(&self) -> bool
Bits: 4..5
sourcepub const fn with_alternate_injection(self, value: bool) -> Self
pub const fn with_alternate_injection(self, value: bool) -> Self
Bits: 4..5
sourcepub fn set_alternate_injection(&mut self, value: bool)
pub fn set_alternate_injection(&mut self, value: bool)
Bits: 4..5
sourcepub const fn debug_swap(&self) -> bool
pub const fn debug_swap(&self) -> bool
Bits: 5..6
sourcepub const fn with_debug_swap(self, value: bool) -> Self
pub const fn with_debug_swap(self, value: bool) -> Self
Bits: 5..6
sourcepub fn set_debug_swap(&mut self, value: bool)
pub fn set_debug_swap(&mut self, value: bool)
Bits: 5..6
sourcepub const fn prevent_host_ibs(&self) -> bool
pub const fn prevent_host_ibs(&self) -> bool
Bits: 6..7
sourcepub const fn with_prevent_host_ibs(self, value: bool) -> Self
pub const fn with_prevent_host_ibs(self, value: bool) -> Self
Bits: 6..7
sourcepub fn set_prevent_host_ibs(&mut self, value: bool)
pub fn set_prevent_host_ibs(&mut self, value: bool)
Bits: 6..7
sourcepub const fn snp_btb_isolation(&self) -> bool
pub const fn snp_btb_isolation(&self) -> bool
Bits: 7..8
sourcepub const fn with_snp_btb_isolation(self, value: bool) -> Self
pub const fn with_snp_btb_isolation(self, value: bool) -> Self
Bits: 7..8
sourcepub fn set_snp_btb_isolation(&mut self, value: bool)
pub fn set_snp_btb_isolation(&mut self, value: bool)
Bits: 7..8
sourcepub const fn with_vmpl_isss(self, value: bool) -> Self
pub const fn with_vmpl_isss(self, value: bool) -> Self
Bits: 8..9
sourcepub fn set_vmpl_isss(&mut self, value: bool)
pub fn set_vmpl_isss(&mut self, value: bool)
Bits: 8..9
sourcepub const fn secure_tsc(&self) -> bool
pub const fn secure_tsc(&self) -> bool
Bits: 9..10
sourcepub const fn with_secure_tsc(self, value: bool) -> Self
pub const fn with_secure_tsc(self, value: bool) -> Self
Bits: 9..10
sourcepub fn set_secure_tsc(&mut self, value: bool)
pub fn set_secure_tsc(&mut self, value: bool)
Bits: 9..10
sourcepub const fn vmgexit_param(&self) -> bool
pub const fn vmgexit_param(&self) -> bool
Bits: 10..11
sourcepub const fn with_vmgexit_param(self, value: bool) -> Self
pub const fn with_vmgexit_param(self, value: bool) -> Self
Bits: 10..11
sourcepub fn set_vmgexit_param(&mut self, value: bool)
pub fn set_vmgexit_param(&mut self, value: bool)
Bits: 10..11
sourcepub const fn with_pmc_virt(self, value: bool) -> Self
pub const fn with_pmc_virt(self, value: bool) -> Self
Bits: 11..12
sourcepub fn set_pmc_virt(&mut self, value: bool)
pub fn set_pmc_virt(&mut self, value: bool)
Bits: 11..12
sourcepub const fn with_ibs_virt(self, value: bool) -> Self
pub const fn with_ibs_virt(self, value: bool) -> Self
Bits: 12..13
sourcepub fn set_ibs_virt(&mut self, value: bool)
pub fn set_ibs_virt(&mut self, value: bool)
Bits: 12..13
sourcepub const fn vmsa_reg_prot(&self) -> bool
pub const fn vmsa_reg_prot(&self) -> bool
Bits: 14..15
sourcepub const fn with_vmsa_reg_prot(self, value: bool) -> Self
pub const fn with_vmsa_reg_prot(self, value: bool) -> Self
Bits: 14..15
sourcepub fn set_vmsa_reg_prot(&mut self, value: bool)
pub fn set_vmsa_reg_prot(&mut self, value: bool)
Bits: 14..15
sourcepub const fn with_smt_prot(self, value: bool) -> Self
pub const fn with_smt_prot(self, value: bool) -> Self
Bits: 15..16
sourcepub fn set_smt_prot(&mut self, value: bool)
pub fn set_smt_prot(&mut self, value: bool)
Bits: 15..16
sourcepub const fn secure_avic(&self) -> bool
pub const fn secure_avic(&self) -> bool
Bits: 16..17
sourcepub const fn with_secure_avic(self, value: bool) -> Self
pub const fn with_secure_avic(self, value: bool) -> Self
Bits: 16..17
sourcepub fn set_secure_avic(&mut self, value: bool)
pub fn set_secure_avic(&mut self, value: bool)
Bits: 16..17
Trait Implementations§
source§impl AsBytes for SevFeatureswhere
u64: AsBytes,
impl AsBytes for SevFeatureswhere
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 SevFeatures
impl Clone for SevFeatures
source§fn clone(&self) -> SevFeatures
fn clone(&self) -> SevFeatures
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 SevFeatures
impl Debug for SevFeatures
source§impl Default for SevFeatures
impl Default for SevFeatures
source§impl From<SevFeatures> for u64
impl From<SevFeatures> for u64
source§fn from(v: SevFeatures) -> u64
fn from(v: SevFeatures) -> u64
Converts to this type from the input type.
source§impl From<u64> for SevFeatures
impl From<u64> for SevFeatures
source§impl FromBytes for SevFeatureswhere
u64: FromBytes,
impl FromBytes for SevFeatureswhere
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 SevFeatureswhere
u64: FromZeroes,
impl FromZeroes for SevFeatureswhere
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 SevFeatures
impl PartialEq for SevFeatures
impl Copy for SevFeatures
impl Eq for SevFeatures
impl StructuralPartialEq for SevFeatures
Auto Trait Implementations§
impl Freeze for SevFeatures
impl RefUnwindSafe for SevFeatures
impl Send for SevFeatures
impl Sync for SevFeatures
impl Unpin for SevFeatures
impl UnwindSafe for SevFeatures
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
)