TECHNOLOGY

SR-IOV inventory: virtual functions must not multiply physical asset counts

In this article
THE QUICK TAKE

Linux SR-IOV distinguishes physical functions and virtual functions. The Redfish PCIeFunction model likewise exposes a Physical or Virtual FunctionType. Enumeration of a virtual function is meaningful, but it is not evidence of an independently delivered board.

An inventory refresh discovers additional PCI functions after SR-IOV is enabled and reports that new physical adapters were installed. The actual change is a logical-function configuration. Asset accounting needs the physical-to-virtual relationship before it interprets discovery growth as purchased hardware.

The hardware contract

Linux SR-IOV distinguishes physical functions and virtual functions. The Redfish PCIeFunction model likewise exposes a Physical or Virtual FunctionType. Enumeration of a virtual function is meaningful, but it is not evidence of an independently delivered board.

Preserve the parent relationship and the observation scope. A function visible to a guest and its physical owner visible to the host can legitimately appear in different inventories. Joining only by product name or adding every discovered function double counts the physical resource and can also confuse assignment history.

Implementation details

Keep physical asset records separate from assignable-function records. Record supported capability, configured virtual-function count and actually observed functions as different states. A maximum capability does not establish that all those functions currently exist or are allocated.

Use the documented host relationships to reconcile ownership, and retain unknown ownership when the collector cannot see the required scope. Do not infer a universal performance fraction per virtual function. Resource sharing and supported features depend on the device and configuration. A correct inventory can support placement review without claiming that each logical function has independent power, cooling or full physical-adapter throughput. Preserve configuration changes so enabling virtualization does not look like a hardware purchase.

A constructed acceptance test

Create a fixture with one physical function and several related virtual functions, then vary the configured virtual-function set. The physical asset count should remain stable while the logical assignment view changes. Include a function visible only from a restricted collector and keep its unresolved parent explicit.

Recreate a virtual function with a changed address and verify that the history does not become a new physical delivery. Compare a clean host relationship map with the collected graph, checking both missing and duplicated edges. Finally test a disabled virtualization configuration. The report must distinguish no configured virtual functions from an unavailable query, rather than treating both as an empty successful inventory.

Recovery and limits

This comparison establishes inventory and assignment consistency, not isolation strength or workload suitability. Guest visibility can intentionally omit physical identifiers, and that limitation should remain visible. Qualify the actual device mode and service separately before adding it to an inference pool. A physical adapter replacement requires a new asset observation even if virtual-function addresses are recreated to resemble the earlier configuration; logical continuity must not erase the physical maintenance event.

Primary references

Pci Sriov; DMTF Redfish PCIeFunction.

This is a proposed acceptance procedure, not an executed Retrivium test. Preserve the observed implementation version and unresolved outcomes; the documentation does not certify a particular device or establish its remaining service life.

AMD GPU Operator and KubeVirt: PF/VF assignment and the scheduling boundary; PCIe and GPU hosting: when the connection limits a model.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles