Struct x86defs::cpuid::ExtendedSevFeaturesEax

source ·
pub struct ExtendedSevFeaturesEax(/* private fields */);

Implementations§

source§

impl ExtendedSevFeaturesEax

source

pub const fn new() -> Self

Creates a new default initialized bitfield.

source

pub const fn from_bits(bits: u32) -> Self

Convert from bits.

source

pub const fn into_bits(self) -> u32

Convert into bits.

source

pub const fn sme(&self) -> bool

Bits: 0..1

source

pub const fn with_sme(self, value: bool) -> Self

Bits: 0..1

source

pub fn set_sme(&mut self, value: bool)

Bits: 0..1

source

pub const fn sev(&self) -> bool

Bits: 1..2

source

pub const fn with_sev(self, value: bool) -> Self

Bits: 1..2

source

pub fn set_sev(&mut self, value: bool)

Bits: 1..2

source

pub const fn vmpage_flush_msr_available(&self) -> bool

Bits: 2..3

source

pub const fn with_vmpage_flush_msr_available(self, value: bool) -> Self

Bits: 2..3

source

pub fn set_vmpage_flush_msr_available(&mut self, value: bool)

Bits: 2..3

source

pub const fn sev_es(&self) -> bool

Bits: 3..4

source

pub const fn with_sev_es(self, value: bool) -> Self

Bits: 3..4

source

pub fn set_sev_es(&mut self, value: bool)

Bits: 3..4

source

pub const fn sev_snp(&self) -> bool

Bits: 4..5

source

pub const fn with_sev_snp(self, value: bool) -> Self

Bits: 4..5

source

pub fn set_sev_snp(&mut self, value: bool)

Bits: 4..5

source

pub const fn vmpl(&self) -> bool

Bits: 5..6

source

pub const fn with_vmpl(self, value: bool) -> Self

Bits: 5..6

source

pub fn set_vmpl(&mut self, value: bool)

Bits: 5..6

source

pub const fn rmp_query(&self) -> bool

Bits: 6..7

source

pub const fn with_rmp_query(self, value: bool) -> Self

Bits: 6..7

source

pub fn set_rmp_query(&mut self, value: bool)

Bits: 6..7

source

pub const fn vmpl_isss(&self) -> bool

Bits: 7..8

source

pub const fn with_vmpl_isss(self, value: bool) -> Self

Bits: 7..8

source

pub fn set_vmpl_isss(&mut self, value: bool)

Bits: 7..8

source

pub const fn secure_tsc(&self) -> bool

Bits: 8..9

source

pub const fn with_secure_tsc(self, value: bool) -> Self

Bits: 8..9

source

pub fn set_secure_tsc(&mut self, value: bool)

Bits: 8..9

source

pub const fn tsc_aux_virtualization(&self) -> bool

Bits: 9..10

source

pub const fn with_tsc_aux_virtualization(self, value: bool) -> Self

Bits: 9..10

source

pub fn set_tsc_aux_virtualization(&mut self, value: bool)

Bits: 9..10

source

pub const fn coherency_enforced(&self) -> bool

Bits: 10..11

source

pub const fn with_coherency_enforced(self, value: bool) -> Self

Bits: 10..11

source

pub fn set_coherency_enforced(&mut self, value: bool)

Bits: 10..11

source

pub const fn req64_bit_hypervisor(&self) -> bool

Bits: 11..12

source

pub const fn with_req64_bit_hypervisor(self, value: bool) -> Self

Bits: 11..12

source

pub fn set_req64_bit_hypervisor(&mut self, value: bool)

Bits: 11..12

source

pub const fn restrict_injection(&self) -> bool

Bits: 12..13

source

pub const fn with_restrict_injection(self, value: bool) -> Self

Bits: 12..13

source

pub fn set_restrict_injection(&mut self, value: bool)

Bits: 12..13

source

pub const fn alternate_injection(&self) -> bool

Bits: 13..14

source

pub const fn with_alternate_injection(self, value: bool) -> Self

Bits: 13..14

source

pub fn set_alternate_injection(&mut self, value: bool)

Bits: 13..14

source

pub const fn debug_state_swap(&self) -> bool

Bits: 14..15

source

pub const fn with_debug_state_swap(self, value: bool) -> Self

Bits: 14..15

source

pub fn set_debug_state_swap(&mut self, value: bool)

Bits: 14..15

source

pub const fn prevent_host_ibs(&self) -> bool

Bits: 15..16

source

pub const fn with_prevent_host_ibs(self, value: bool) -> Self

Bits: 15..16

source

pub fn set_prevent_host_ibs(&mut self, value: bool)

Bits: 15..16

source

pub const fn vte(&self) -> bool

Bits: 16..17

source

pub const fn with_vte(self, value: bool) -> Self

Bits: 16..17

source

pub fn set_vte(&mut self, value: bool)

Bits: 16..17

source

pub const fn vmgexit_parameter(&self) -> bool

Bits: 17..18

source

pub const fn with_vmgexit_parameter(self, value: bool) -> Self

Bits: 17..18

source

pub fn set_vmgexit_parameter(&mut self, value: bool)

Bits: 17..18

source

pub const fn virtual_tom_msr(&self) -> bool

Bits: 18..19

source

pub const fn with_virtual_tom_msr(self, value: bool) -> Self

Bits: 18..19

source

pub fn set_virtual_tom_msr(&mut self, value: bool)

Bits: 18..19

source

pub const fn ibs_virtualization(&self) -> bool

Bits: 19..20

source

pub const fn with_ibs_virtualization(self, value: bool) -> Self

Bits: 19..20

source

pub fn set_ibs_virtualization(&mut self, value: bool)

Bits: 19..20

source

pub const fn vmsa_register_protection(&self) -> bool

Bits: 24..25

source

pub const fn with_vmsa_register_protection(self, value: bool) -> Self

Bits: 24..25

source

pub fn set_vmsa_register_protection(&mut self, value: bool)

Bits: 24..25

source

pub const fn nested_virt_msr_snp(&self) -> bool

Bits: 29..30

source

pub const fn with_nested_virt_msr_snp(self, value: bool) -> Self

Bits: 29..30

source

pub fn set_nested_virt_msr_snp(&mut self, value: bool)

Bits: 29..30

Trait Implementations§

source§

impl Clone for ExtendedSevFeaturesEax

source§

fn clone(&self) -> ExtendedSevFeaturesEax

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ExtendedSevFeaturesEax

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ExtendedSevFeaturesEax

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<ExtendedSevFeaturesEax> for u32

source§

fn from(v: ExtendedSevFeaturesEax) -> u32

Converts to this type from the input type.
source§

impl From<u32> for ExtendedSevFeaturesEax

source§

fn from(v: u32) -> Self

Converts to this type from the input type.
source§

impl Copy for ExtendedSevFeaturesEax

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.