pub struct HvGpaRangeExtendedLargePage(/* private fields */);
Implementations§
Source§impl HvGpaRangeExtendedLargePage
impl HvGpaRangeExtendedLargePage
Sourcepub const fn additional_pages(&self) -> u64
pub const fn additional_pages(&self) -> u64
The number of pages beyond one.
Bits: 0..11
Sourcepub const fn with_additional_pages(self, value: u64) -> Self
pub const fn with_additional_pages(self, value: u64) -> Self
The number of pages beyond one.
Bits: 0..11
Sourcepub fn set_additional_pages(&mut self, value: u64)
pub fn set_additional_pages(&mut self, value: u64)
The number of pages beyond one.
Bits: 0..11
Sourcepub const fn large_page(&self) -> bool
pub const fn large_page(&self) -> bool
Is page size greater than 4 KB.
Bits: 11..12
Sourcepub const fn with_large_page(self, value: bool) -> Self
pub const fn with_large_page(self, value: bool) -> Self
Is page size greater than 4 KB.
Bits: 11..12
Sourcepub fn set_large_page(&mut self, value: bool)
pub fn set_large_page(&mut self, value: bool)
Is page size greater than 4 KB.
Bits: 11..12
Sourcepub const fn page_size(&self) -> bool
pub const fn page_size(&self) -> bool
The page size when `large_page`` is set. false: 2 MB true: 1 GB
Bits: 12..13
Sourcepub const fn with_page_size(self, value: bool) -> Self
pub const fn with_page_size(self, value: bool) -> Self
The page size when `large_page`` is set. false: 2 MB true: 1 GB
Bits: 12..13
Sourcepub fn set_page_size(&mut self, value: bool)
pub fn set_page_size(&mut self, value: bool)
The page size when `large_page`` is set. false: 2 MB true: 1 GB
Bits: 12..13
Sourcepub const fn gpa_large_page_number(&self) -> u64
pub const fn gpa_large_page_number(&self) -> u64
The top 43 most significant bits of the guest physical address when `large_page`` is set.
Bits: 21..64
Sourcepub const fn with_gpa_large_page_number(self, value: u64) -> Self
pub const fn with_gpa_large_page_number(self, value: u64) -> Self
The top 43 most significant bits of the guest physical address when `large_page`` is set.
Bits: 21..64
Sourcepub fn set_gpa_large_page_number(&mut self, value: u64)
pub fn set_gpa_large_page_number(&mut self, value: u64)
The top 43 most significant bits of the guest physical address when `large_page`` is set.
Bits: 21..64
Trait Implementations§
Source§impl Clone for HvGpaRangeExtendedLargePage
impl Clone for HvGpaRangeExtendedLargePage
Source§fn clone(&self) -> HvGpaRangeExtendedLargePage
fn clone(&self) -> HvGpaRangeExtendedLargePage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HvGpaRangeExtendedLargePage
impl Debug for HvGpaRangeExtendedLargePage
Source§impl From<HvGpaRangeExtendedLargePage> for u64
impl From<HvGpaRangeExtendedLargePage> for u64
Source§fn from(v: HvGpaRangeExtendedLargePage) -> u64
fn from(v: HvGpaRangeExtendedLargePage) -> u64
Source§impl From<u64> for HvGpaRangeExtendedLargePage
impl From<u64> for HvGpaRangeExtendedLargePage
Source§impl FromBytes for HvGpaRangeExtendedLargePagewhere
u64: FromBytes,
impl FromBytes for HvGpaRangeExtendedLargePagewhere
u64: FromBytes,
§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
&Self
. Read more§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Source§impl FromZeros for HvGpaRangeExtendedLargePagewhere
u64: FromZeros,
impl FromZeros for HvGpaRangeExtendedLargePagewhere
u64: FromZeros,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Box<Self>
from zeroed bytes. Read more§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Vec<Self>
from zeroed bytes. Read moreSource§impl IntoBytes for HvGpaRangeExtendedLargePagewhere
u64: IntoBytes,
impl IntoBytes for HvGpaRangeExtendedLargePagewhere
u64: IntoBytes,
§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl KnownLayout for HvGpaRangeExtendedLargePagewhere
Self: Sized,
impl KnownLayout for HvGpaRangeExtendedLargePagewhere
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
Self
. Read more