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

Method get_device_bdf

vmm/src/device_manager.rs:4536–4538  ·  view source on GitHub ↗

Get the guest PCI BDF for a device ID. Returns None if the device ID is not found. Used for resolving Generic Initiator device_id to BDF in ACPI generation.

(&self, device_id: &str)

Source from the content-addressed store, hash-verified

4534 // Returns None if the device ID is not found.
4535 // Used for resolving Generic Initiator device_id to BDF in ACPI generation.
4536 pub fn get_device_bdf(&self, device_id: &str) -> Option<PciBdf> {
4537 self.device_id_to_bdf.get(device_id).copied()
4538 }
4539
4540 #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))]
4541 pub fn cmdline_additions(&self) -> &[String] {

Callers 1

create_srat_tableFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected