pub struct ExtendedSevFeaturesEax(/* private fields */);
Implementations§
Source§impl ExtendedSevFeaturesEax
impl ExtendedSevFeaturesEax
Sourcepub const fn with_sme_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_sme_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn with_sev_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_sev_checked(self, value: bool) -> Result<Self, ()>
Bits: 1..2
Sourcepub const fn vmpage_flush_msr_available(&self) -> bool
pub const fn vmpage_flush_msr_available(&self) -> bool
Bits: 2..3
Sourcepub const fn with_vmpage_flush_msr_available_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_vmpage_flush_msr_available_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 2..3
Sourcepub const fn with_vmpage_flush_msr_available(self, value: bool) -> Self
pub const fn with_vmpage_flush_msr_available(self, value: bool) -> Self
Bits: 2..3
Sourcepub const fn set_vmpage_flush_msr_available(&mut self, value: bool)
pub const fn set_vmpage_flush_msr_available(&mut self, value: bool)
Bits: 2..3
Sourcepub const fn set_vmpage_flush_msr_available_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_vmpage_flush_msr_available_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 2..3
Sourcepub const fn with_sev_es_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_sev_es_checked(self, value: bool) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn with_sev_es(self, value: bool) -> Self
pub const fn with_sev_es(self, value: bool) -> Self
Bits: 3..4
Sourcepub const fn set_sev_es(&mut self, value: bool)
pub const fn set_sev_es(&mut self, value: bool)
Bits: 3..4
Sourcepub const fn with_sev_snp_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_sev_snp_checked(self, value: bool) -> Result<Self, ()>
Bits: 4..5
Sourcepub const fn with_sev_snp(self, value: bool) -> Self
pub const fn with_sev_snp(self, value: bool) -> Self
Bits: 4..5
Sourcepub const fn set_sev_snp(&mut self, value: bool)
pub const fn set_sev_snp(&mut self, value: bool)
Bits: 4..5
Sourcepub const fn with_vmpl_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_vmpl_checked(self, value: bool) -> Result<Self, ()>
Bits: 5..6
Sourcepub const fn with_rmp_query_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_rmp_query_checked(self, value: bool) -> Result<Self, ()>
Bits: 6..7
Sourcepub const fn with_rmp_query(self, value: bool) -> Self
pub const fn with_rmp_query(self, value: bool) -> Self
Bits: 6..7
Sourcepub const fn set_rmp_query(&mut self, value: bool)
pub const fn set_rmp_query(&mut self, value: bool)
Bits: 6..7
Sourcepub const fn with_vmpl_isss_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_vmpl_isss_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
Sourcepub const fn with_vmpl_isss(self, value: bool) -> Self
pub const fn with_vmpl_isss(self, value: bool) -> Self
Bits: 7..8
Sourcepub const fn set_vmpl_isss(&mut self, value: bool)
pub const fn set_vmpl_isss(&mut self, value: bool)
Bits: 7..8
Sourcepub const fn secure_tsc(&self) -> bool
pub const fn secure_tsc(&self) -> bool
Bits: 8..9
Sourcepub const fn with_secure_tsc_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_secure_tsc_checked(self, value: bool) -> Result<Self, ()>
Bits: 8..9
Sourcepub const fn with_secure_tsc(self, value: bool) -> Self
pub const fn with_secure_tsc(self, value: bool) -> Self
Bits: 8..9
Sourcepub const fn set_secure_tsc(&mut self, value: bool)
pub const fn set_secure_tsc(&mut self, value: bool)
Bits: 8..9
Sourcepub const fn tsc_aux_virtualization(&self) -> bool
pub const fn tsc_aux_virtualization(&self) -> bool
Bits: 9..10
Sourcepub const fn with_tsc_aux_virtualization_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_tsc_aux_virtualization_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 9..10
Sourcepub const fn with_tsc_aux_virtualization(self, value: bool) -> Self
pub const fn with_tsc_aux_virtualization(self, value: bool) -> Self
Bits: 9..10
Sourcepub const fn set_tsc_aux_virtualization(&mut self, value: bool)
pub const fn set_tsc_aux_virtualization(&mut self, value: bool)
Bits: 9..10
Sourcepub const fn set_tsc_aux_virtualization_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_tsc_aux_virtualization_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 9..10
Sourcepub const fn coherency_enforced(&self) -> bool
pub const fn coherency_enforced(&self) -> bool
Bits: 10..11
Sourcepub const fn with_coherency_enforced_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_coherency_enforced_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 10..11
Sourcepub const fn with_coherency_enforced(self, value: bool) -> Self
pub const fn with_coherency_enforced(self, value: bool) -> Self
Bits: 10..11
Sourcepub const fn set_coherency_enforced(&mut self, value: bool)
pub const fn set_coherency_enforced(&mut self, value: bool)
Bits: 10..11
Sourcepub const fn set_coherency_enforced_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_coherency_enforced_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 10..11
Sourcepub const fn req64_bit_hypervisor(&self) -> bool
pub const fn req64_bit_hypervisor(&self) -> bool
Bits: 11..12
Sourcepub const fn with_req64_bit_hypervisor_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_req64_bit_hypervisor_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 11..12
Sourcepub const fn with_req64_bit_hypervisor(self, value: bool) -> Self
pub const fn with_req64_bit_hypervisor(self, value: bool) -> Self
Bits: 11..12
Sourcepub const fn set_req64_bit_hypervisor(&mut self, value: bool)
pub const fn set_req64_bit_hypervisor(&mut self, value: bool)
Bits: 11..12
Sourcepub const fn set_req64_bit_hypervisor_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_req64_bit_hypervisor_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 11..12
Sourcepub const fn restrict_injection(&self) -> bool
pub const fn restrict_injection(&self) -> bool
Bits: 12..13
Sourcepub const fn with_restrict_injection_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_restrict_injection_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 12..13
Sourcepub const fn with_restrict_injection(self, value: bool) -> Self
pub const fn with_restrict_injection(self, value: bool) -> Self
Bits: 12..13
Sourcepub const fn set_restrict_injection(&mut self, value: bool)
pub const fn set_restrict_injection(&mut self, value: bool)
Bits: 12..13
Sourcepub const fn set_restrict_injection_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_restrict_injection_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 12..13
Sourcepub const fn alternate_injection(&self) -> bool
pub const fn alternate_injection(&self) -> bool
Bits: 13..14
Sourcepub const fn with_alternate_injection_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_alternate_injection_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 13..14
Sourcepub const fn with_alternate_injection(self, value: bool) -> Self
pub const fn with_alternate_injection(self, value: bool) -> Self
Bits: 13..14
Sourcepub const fn set_alternate_injection(&mut self, value: bool)
pub const fn set_alternate_injection(&mut self, value: bool)
Bits: 13..14
Sourcepub const fn set_alternate_injection_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_alternate_injection_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 13..14
Sourcepub const fn debug_state_swap(&self) -> bool
pub const fn debug_state_swap(&self) -> bool
Bits: 14..15
Sourcepub const fn with_debug_state_swap_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_debug_state_swap_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 14..15
Sourcepub const fn with_debug_state_swap(self, value: bool) -> Self
pub const fn with_debug_state_swap(self, value: bool) -> Self
Bits: 14..15
Sourcepub const fn set_debug_state_swap(&mut self, value: bool)
pub const fn set_debug_state_swap(&mut self, value: bool)
Bits: 14..15
Sourcepub const fn set_debug_state_swap_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_debug_state_swap_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 14..15
Sourcepub const fn prevent_host_ibs(&self) -> bool
pub const fn prevent_host_ibs(&self) -> bool
Bits: 15..16
Sourcepub const fn with_prevent_host_ibs_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_prevent_host_ibs_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 15..16
Sourcepub const fn with_prevent_host_ibs(self, value: bool) -> Self
pub const fn with_prevent_host_ibs(self, value: bool) -> Self
Bits: 15..16
Sourcepub const fn set_prevent_host_ibs(&mut self, value: bool)
pub const fn set_prevent_host_ibs(&mut self, value: bool)
Bits: 15..16
Sourcepub const fn set_prevent_host_ibs_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_prevent_host_ibs_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 15..16
Sourcepub const fn with_vte_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_vte_checked(self, value: bool) -> Result<Self, ()>
Bits: 16..17
Sourcepub const fn vmgexit_parameter(&self) -> bool
pub const fn vmgexit_parameter(&self) -> bool
Bits: 17..18
Sourcepub const fn with_vmgexit_parameter_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_vmgexit_parameter_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 17..18
Sourcepub const fn with_vmgexit_parameter(self, value: bool) -> Self
pub const fn with_vmgexit_parameter(self, value: bool) -> Self
Bits: 17..18
Sourcepub const fn set_vmgexit_parameter(&mut self, value: bool)
pub const fn set_vmgexit_parameter(&mut self, value: bool)
Bits: 17..18
Sourcepub const fn set_vmgexit_parameter_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_vmgexit_parameter_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 17..18
Sourcepub const fn virtual_tom_msr(&self) -> bool
pub const fn virtual_tom_msr(&self) -> bool
Bits: 18..19
Sourcepub const fn with_virtual_tom_msr_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_virtual_tom_msr_checked(self, value: bool) -> Result<Self, ()>
Bits: 18..19
Sourcepub const fn with_virtual_tom_msr(self, value: bool) -> Self
pub const fn with_virtual_tom_msr(self, value: bool) -> Self
Bits: 18..19
Sourcepub const fn set_virtual_tom_msr(&mut self, value: bool)
pub const fn set_virtual_tom_msr(&mut self, value: bool)
Bits: 18..19
Sourcepub const fn set_virtual_tom_msr_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_virtual_tom_msr_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 18..19
Sourcepub const fn ibs_virtualization(&self) -> bool
pub const fn ibs_virtualization(&self) -> bool
Bits: 19..20
Sourcepub const fn with_ibs_virtualization_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_ibs_virtualization_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 19..20
Sourcepub const fn with_ibs_virtualization(self, value: bool) -> Self
pub const fn with_ibs_virtualization(self, value: bool) -> Self
Bits: 19..20
Sourcepub const fn set_ibs_virtualization(&mut self, value: bool)
pub const fn set_ibs_virtualization(&mut self, value: bool)
Bits: 19..20
Sourcepub const fn set_ibs_virtualization_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_ibs_virtualization_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 19..20
Sourcepub const fn vmsa_register_protection(&self) -> bool
pub const fn vmsa_register_protection(&self) -> bool
Bits: 24..25
Sourcepub const fn with_vmsa_register_protection_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_vmsa_register_protection_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 24..25
Sourcepub const fn with_vmsa_register_protection(self, value: bool) -> Self
pub const fn with_vmsa_register_protection(self, value: bool) -> Self
Bits: 24..25
Sourcepub const fn set_vmsa_register_protection(&mut self, value: bool)
pub const fn set_vmsa_register_protection(&mut self, value: bool)
Bits: 24..25
Sourcepub const fn set_vmsa_register_protection_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_vmsa_register_protection_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 24..25
Sourcepub const fn nested_virt_msr_snp(&self) -> bool
pub const fn nested_virt_msr_snp(&self) -> bool
Bits: 29..30
Sourcepub const fn with_nested_virt_msr_snp_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_nested_virt_msr_snp_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 29..30
Sourcepub const fn with_nested_virt_msr_snp(self, value: bool) -> Self
pub const fn with_nested_virt_msr_snp(self, value: bool) -> Self
Bits: 29..30
Sourcepub const fn set_nested_virt_msr_snp(&mut self, value: bool)
pub const fn set_nested_virt_msr_snp(&mut self, value: bool)
Bits: 29..30
Trait Implementations§
Source§impl Clone for ExtendedSevFeaturesEax
impl Clone for ExtendedSevFeaturesEax
Source§fn clone(&self) -> ExtendedSevFeaturesEax
fn clone(&self) -> ExtendedSevFeaturesEax
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more