pub struct Control(/* private fields */);
Expand description
The hypercall input value.
Implementations§
Source§impl Control
impl Control
Sourcepub const fn with_fast(self, value: bool) -> Self
pub const fn with_fast(self, value: bool) -> Self
If this hypercall is a fast hypercall.
Bits: 16..17
Sourcepub const fn variable_header_size(&self) -> usize
pub const fn variable_header_size(&self) -> usize
The variable header size, in qwords.
Bits: 17..27
Sourcepub const fn with_variable_header_size(self, value: usize) -> Self
pub const fn with_variable_header_size(self, value: usize) -> Self
The variable header size, in qwords.
Bits: 17..27
Sourcepub fn set_variable_header_size(&mut self, value: usize)
pub fn set_variable_header_size(&mut self, value: usize)
The variable header size, in qwords.
Bits: 17..27
Sourcepub const fn nested(&self) -> bool
pub const fn nested(&self) -> bool
Specifies that the hypercall should be handled by the L0 hypervisor in a nested environment.
Bits: 31..32
Sourcepub const fn with_nested(self, value: bool) -> Self
pub const fn with_nested(self, value: bool) -> Self
Specifies that the hypercall should be handled by the L0 hypervisor in a nested environment.
Bits: 31..32
Sourcepub fn set_nested(&mut self, value: bool)
pub fn set_nested(&mut self, value: bool)
Specifies that the hypercall should be handled by the L0 hypervisor in a nested environment.
Bits: 31..32
Sourcepub const fn with_rep_count(self, value: usize) -> Self
pub const fn with_rep_count(self, value: usize) -> Self
The element count for rep hypercalls.
Bits: 32..44
Sourcepub fn set_rep_count(&mut self, value: usize)
pub fn set_rep_count(&mut self, value: usize)
The element count for rep hypercalls.
Bits: 32..44
Sourcepub const fn rep_start(&self) -> usize
pub const fn rep_start(&self) -> usize
The first element to start processing in a rep hypercall.
Bits: 48..60
Sourcepub const fn with_rep_start(self, value: usize) -> Self
pub const fn with_rep_start(self, value: usize) -> Self
The first element to start processing in a rep hypercall.
Bits: 48..60
Sourcepub fn set_rep_start(&mut self, value: usize)
pub fn set_rep_start(&mut self, value: usize)
The first element to start processing in a rep hypercall.
Bits: 48..60