MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / accessed

Method accessed

pci/src/vfio.rs:218–236  ·  view source on GitHub ↗
(&self, offset: u64)

Source from the content-addressed store, hash-verified

216 }
217
218 fn accessed(&self, offset: u64) -> Option<(PciCapabilityId, u64)> {
219 if let Some(msi) = &self.msi
220 && offset >= u64::from(msi.cap_offset)
221 && offset < u64::from(msi.cap_offset) + msi.cfg.size()
222 {
223 return Some((
224 PciCapabilityId::MessageSignalledInterrupts,
225 u64::from(msi.cap_offset),
226 ));
227 }
228
229 if let Some(msix) = &self.msix
230 && offset == u64::from(msix.cap_offset)
231 {
232 return Some((PciCapabilityId::MsiX, u64::from(msix.cap_offset)));
233 }
234
235 None
236 }
237
238 fn msix_table_accessed(&self, bar_index: u32, offset: u64) -> bool {
239 if let Some(msix) = &self.msix {

Callers 1

write_config_registerMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected