pub struct GenericInitiator {
pub segment: u16,
pub bus: u8,
pub device: u8,
pub function: u8,
pub vnode: u32,
}Expand description
A PCI generic initiator to expose in the SRAT.
Associates a passthrough PCI device with a (typically CPU-less) NUMA node via an SRAT Generic Initiator Affinity structure. Guest drivers that look up a device’s proximity domain by walking the SRAT (e.g. NVIDIA’s coherent-memory onlining path for Grace-based GPUs) use this to attach the device’s memory to a node.
Fields§
§segment: u16PCI segment of the device.
bus: u8PCI bus number of the device.
device: u8PCI device number.
function: u8PCI function number.
vnode: u32Proximity domain (NUMA node) this initiator is associated with.
Trait Implementations§
Source§impl Clone for GenericInitiator
impl Clone for GenericInitiator
Source§fn clone(&self) -> GenericInitiator
fn clone(&self) -> GenericInitiator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenericInitiator
impl Debug for GenericInitiator
impl Copy for GenericInitiator
Auto Trait Implementations§
impl Freeze for GenericInitiator
impl RefUnwindSafe for GenericInitiator
impl Send for GenericInitiator
impl Sync for GenericInitiator
impl Unpin for GenericInitiator
impl UnsafeUnpin for GenericInitiator
impl UnwindSafe for GenericInitiator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more