pub struct GuestFieldSelect(/* private fields */);
Expand description
Indicate which guest-selectable fields will be mixed into the key.
See GUEST_FIELD_SELECT
in Table 19, “SEV Secure Nested Paging Firmware ABI specification”, Revision 1.55.
Implementations§
Source§impl GuestFieldSelect
impl GuestFieldSelect
Sourcepub const fn guest_policy(&self) -> bool
pub const fn guest_policy(&self) -> bool
Indicate that the guest policy will be mixed into the key.
Bits: 0..1
Sourcepub const fn with_guest_policy_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_guest_policy_checked(self, value: bool) -> Result<Self, ()>
Indicate that the guest policy will be mixed into the key.
Bits: 0..1
Sourcepub const fn with_guest_policy(self, value: bool) -> Self
pub const fn with_guest_policy(self, value: bool) -> Self
Indicate that the guest policy will be mixed into the key.
Bits: 0..1
Sourcepub const fn set_guest_policy(&mut self, value: bool)
pub const fn set_guest_policy(&mut self, value: bool)
Indicate that the guest policy will be mixed into the key.
Bits: 0..1
Sourcepub const fn set_guest_policy_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_guest_policy_checked(&mut self, value: bool) -> Result<(), ()>
Indicate that the guest policy will be mixed into the key.
Bits: 0..1
Sourcepub const fn image_id(&self) -> bool
pub const fn image_id(&self) -> bool
Indicate that the image ID of the guest will be mixed into the key.
Bits: 1..2
Sourcepub const fn with_image_id_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_image_id_checked(self, value: bool) -> Result<Self, ()>
Indicate that the image ID of the guest will be mixed into the key.
Bits: 1..2
Sourcepub const fn with_image_id(self, value: bool) -> Self
pub const fn with_image_id(self, value: bool) -> Self
Indicate that the image ID of the guest will be mixed into the key.
Bits: 1..2
Sourcepub const fn set_image_id(&mut self, value: bool)
pub const fn set_image_id(&mut self, value: bool)
Indicate that the image ID of the guest will be mixed into the key.
Bits: 1..2
Sourcepub const fn set_image_id_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_image_id_checked(&mut self, value: bool) -> Result<(), ()>
Indicate that the image ID of the guest will be mixed into the key.
Bits: 1..2
Sourcepub const fn family_id(&self) -> bool
pub const fn family_id(&self) -> bool
Indicate the family ID of the guest will be mixed into the key.
Bits: 2..3
Sourcepub const fn with_family_id_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_family_id_checked(self, value: bool) -> Result<Self, ()>
Indicate the family ID of the guest will be mixed into the key.
Bits: 2..3
Sourcepub const fn with_family_id(self, value: bool) -> Self
pub const fn with_family_id(self, value: bool) -> Self
Indicate the family ID of the guest will be mixed into the key.
Bits: 2..3
Sourcepub const fn set_family_id(&mut self, value: bool)
pub const fn set_family_id(&mut self, value: bool)
Indicate the family ID of the guest will be mixed into the key.
Bits: 2..3
Sourcepub const fn set_family_id_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_family_id_checked(&mut self, value: bool) -> Result<(), ()>
Indicate the family ID of the guest will be mixed into the key.
Bits: 2..3
Sourcepub const fn measurement(&self) -> bool
pub const fn measurement(&self) -> bool
Indicate the measurement of the guest during launch will be mixed into the key.
Bits: 3..4
Sourcepub const fn with_measurement_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_measurement_checked(self, value: bool) -> Result<Self, ()>
Indicate the measurement of the guest during launch will be mixed into the key.
Bits: 3..4
Sourcepub const fn with_measurement(self, value: bool) -> Self
pub const fn with_measurement(self, value: bool) -> Self
Indicate the measurement of the guest during launch will be mixed into the key.
Bits: 3..4
Sourcepub const fn set_measurement(&mut self, value: bool)
pub const fn set_measurement(&mut self, value: bool)
Indicate the measurement of the guest during launch will be mixed into the key.
Bits: 3..4
Sourcepub const fn set_measurement_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_measurement_checked(&mut self, value: bool) -> Result<(), ()>
Indicate the measurement of the guest during launch will be mixed into the key.
Bits: 3..4
Sourcepub const fn guest_svn(&self) -> bool
pub const fn guest_svn(&self) -> bool
Indicate that the guest-provided SVN will be mixed into the key.
Bits: 4..5
Sourcepub const fn with_guest_svn_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_guest_svn_checked(self, value: bool) -> Result<Self, ()>
Indicate that the guest-provided SVN will be mixed into the key.
Bits: 4..5
Sourcepub const fn with_guest_svn(self, value: bool) -> Self
pub const fn with_guest_svn(self, value: bool) -> Self
Indicate that the guest-provided SVN will be mixed into the key.
Bits: 4..5
Sourcepub const fn set_guest_svn(&mut self, value: bool)
pub const fn set_guest_svn(&mut self, value: bool)
Indicate that the guest-provided SVN will be mixed into the key.
Bits: 4..5
Sourcepub const fn set_guest_svn_checked(&mut self, value: bool) -> Result<(), ()>
pub const fn set_guest_svn_checked(&mut self, value: bool) -> Result<(), ()>
Indicate that the guest-provided SVN will be mixed into the key.
Bits: 4..5
Sourcepub const fn tcb_version(&self) -> bool
pub const fn tcb_version(&self) -> bool
Indicate that the guest-provided TCB_VERSION will be mixed into the key.
Bits: 5..6
Sourcepub const fn with_tcb_version_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_tcb_version_checked(self, value: bool) -> Result<Self, ()>
Indicate that the guest-provided TCB_VERSION will be mixed into the key.
Bits: 5..6
Sourcepub const fn with_tcb_version(self, value: bool) -> Self
pub const fn with_tcb_version(self, value: bool) -> Self
Indicate that the guest-provided TCB_VERSION will be mixed into the key.
Bits: 5..6
Sourcepub const fn set_tcb_version(&mut self, value: bool)
pub const fn set_tcb_version(&mut self, value: bool)
Indicate that the guest-provided TCB_VERSION will be mixed into the key.
Bits: 5..6
Trait Implementations§
Source§impl Clone for GuestFieldSelect
impl Clone for GuestFieldSelect
Source§fn clone(&self) -> GuestFieldSelect
fn clone(&self) -> GuestFieldSelect
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more