Pcornel
Browse topics
Options
Recent
Favorites
Command · Linux / VFIO

Inspect PCI device and bound driver

lspci -nnk

Operational command for Inspect PCI device and bound driver. Focus fields: PCI address, vendor/device id, kernel driver in use and available modules.

Execution context

Linux / VFIO

Use when

Use when working the canonical Topic virtualization--pci-device-passthrough-passthrough-troubleshooting and the matching failure boundary.

Privilege Use an account/context authorized for this observation; do not broaden scope unnecessarily.State impact Read-onlyProduction Unknown

Operational impact: Read-only observation; runtime cost still depends on platform and result size.
Command detailsSafety model · family · platform · verification · bundle
PrivilegeUse an account/context authorized for this observation; do not broaden scope unnecessarily.
Execution contextLinux / VFIO
State impactRead-only
Safe during productionUnknown
Categorypassthrough
Evidence levelmixed
Primary DomainVirtualization
Technically verifiedNeeds verification date
FamilyPassthrough
PlatformLinux / VFIO
PrerequisiteLinux / VFIO
Output fields

Field glossary

Important fields projected from persisted Command guidance.

PCI address, vendor/device id, kernel driver in use and available modules

Important persisted output field; use surrounding guidance for interpretation.

Command → Topic semantics

Used in these Topics

Each relation carries both placement role and operational semantic: verifies, configures, troubleshoots, collects evidence, changes state or general.

Find another Command

Reference enrichment

Evidence boundary

What this output can establish — and where you must not over-claim.

Proves

This command directly exposes PCI address, vendor/device id, kernel driver in use and available modules for the selected object/context at execution time.

Does not prove

It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.

Next check

check IOMMU groups, kernel parameters and VM device mapping for the same PCI address

Depth when you need it

Command guidance

Execution context

Linux / VFIO

Use when

Use when working the canonical Topic virtualization--pci-device-passthrough-passthrough-troubleshooting and the matching failure boundary.

Important fields

PCI address, vendor/device id, kernel driver in use and available modules

Common problems

Common mistakes: wrong object, node, VRF/namespace, time window, or treating a management-plane status as workload proof.

Operational impact

Read-only observation; runtime cost still depends on platform and result size.

Runtime cautions

Capture the command, selected scope and timestamp so the result can be correlated with the original test.

Technical context

Known-good: the intended device is present and bound to the expected host/VFIO driver for the passthrough design. Suspicious: device is missing or bound to an unexpected host driver. Next discriminating check: check IOMMU groups, kernel parameters and VM device mapping for the same PCI address.

Command Output Deep Dive

Variants · known-good and broken output

Read the stored sample against its authored expected state and interpretation, then return to the Command evidence boundary for what the observation can and cannot prove.

Known-good · 1Broken · 1Transitional · 1Observed · 0
1 · Observe the exact persisted fields/state.2 · Compare with authored known-good, broken or transitional samples.3 · Apply the Command evidence boundary; output is not end-to-end proof.4 · Run the next discriminating check and repeat the original workload/test when relevant.
Illustrative Known-good interpretationKnown-good · Linux / VFIO
Illustrative state cue only; not captured output: the intended device is present and bound to the expected host/VFIO driver for the passthrough design
Expected state

healthy

Interpretation

Inspect PCI device and bound driver — Known-good. Inspect PCI address, vendor/device id, kernel driver in use and available modules. Observed cue: the intended device is present and bound to the expected host/VFIO driver for the passthrough design. This supports only the state returned by lspci -nnk for the selected object and time window. It does not establish root cause or prove the next dependency. Next check: check IOMMU groups, kernel parameters and VM device mapping for the same PCI address. Correlate the result with the same workload/test before declaring recovery.

Evidence boundary

This command directly exposes PCI address, vendor/device id, kernel driver in use and available modules for the selected object/context at execution time.

Does not prove: It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.
Illustrative Transitional interpretationTransitional · Linux / VFIO
Illustrative state cue only; not captured output: The command returns the expected object, but one or more state/counter fields are still moving toward a terminal result.
Expected state

transitional

Interpretation

Inspect PCI device and bound driver — Transitional. Inspect PCI address, vendor/device id, kernel driver in use and available modules. Observed cue: The command returns the expected object, but one or more state/counter fields are still moving toward a terminal result.. This supports only the state returned by lspci -nnk for the selected object and time window. It does not establish root cause or prove the next dependency. Next check: check IOMMU groups, kernel parameters and VM device mapping for the same PCI address. Correlate the result with the same workload/test before declaring recovery.

Evidence boundary

This command directly exposes PCI address, vendor/device id, kernel driver in use and available modules for the selected object/context at execution time.

Does not prove: It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.
Illustrative Broken interpretationBroken · Linux / VFIO
Illustrative state cue only; not captured output: device is missing or bound to an unexpected host driver
Expected state

broken

Interpretation

Inspect PCI device and bound driver — Broken. Inspect PCI address, vendor/device id, kernel driver in use and available modules. Observed cue: device is missing or bound to an unexpected host driver. This supports only the state returned by lspci -nnk for the selected object and time window. It does not establish root cause or prove the next dependency. Next check: check IOMMU groups, kernel parameters and VM device mapping for the same PCI address. Correlate the result with the same workload/test before declaring recovery.

Evidence boundary

This command directly exposes PCI address, vendor/device id, kernel driver in use and available modules for the selected object/context at execution time.

Does not prove: It does not by itself prove root cause, health of an adjacent dependency, or end-to-end workload recovery.
Confirmation

Confirm action

Continue?