pub unsafe trait MappedDmaTarget: Send + Sync {
// Required methods
fn base(&self) -> *const u8;
fn len(&self) -> usize;
fn pfns(&self) -> &[u64];
fn pfn_bias(&self) -> u64;
}
Expand description
A mapped buffer that can be accessed by the host or the device.
§Safety
The implementor must ensure that the VA region from base()..base() + len()
remains mapped for the lifetime.
Required Methods§
Sourcefn pfns(&self) -> &[u64]
fn pfns(&self) -> &[u64]
4KB page numbers used to refer to the memory when communicating with the device.
Sourcefn pfn_bias(&self) -> u64
fn pfn_bias(&self) -> u64
The pfn_bias on confidential platforms (aka vTOM) applied to PFNs in Self::pfns()
,