Skip to content

nvme_driver: Log pci device id when creating new queues#2906

Merged
gurasinghMS merged 3 commits intomicrosoft:mainfrom
gurasinghMS:tracing-update
Mar 7, 2026
Merged

nvme_driver: Log pci device id when creating new queues#2906
gurasinghMS merged 3 commits intomicrosoft:mainfrom
gurasinghMS:tracing-update

Conversation

@gurasinghMS
Copy link
Copy Markdown
Contributor

Minor change. Came across this issue when debugging a case with several queues.

P.S. Had to do some type gymnastics to avoid the immutable reference borrow (string being sent to the info span)

@gurasinghMS gurasinghMS requested review from a team as code owners March 6, 2026 23:45
Copilot AI review requested due to automatic review settings March 6, 2026 23:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds PCI device ID context to the create_nvme_io_queue tracing span so queue creation logs can be correlated to a specific NVMe PCI function during multi-queue debugging.

Changes:

  • Capture the device’s PCI id as an owned string before awaiting queue creation.
  • Include pci_id as a field on the create_nvme_io_queue info_span!.

Comment thread vm/devices/storage/disk_nvme/nvme_driver/src/driver.rs Outdated
alandau
alandau previously approved these changes Mar 7, 2026
@gurasinghMS gurasinghMS enabled auto-merge (squash) March 7, 2026 00:36
@gurasinghMS gurasinghMS merged commit 1e28edf into microsoft:main Mar 7, 2026
56 checks passed
gurasinghMS added a commit to gurasinghMS/openvmm that referenced this pull request Mar 7, 2026
Minor change. Came across this issue when debugging a case with several
queues.

P.S. Had to do some type gymnastics to avoid the immutable reference
borrow (string being sent to the info span)

(cherry picked from commit 1e28edf)
gurasinghMS added a commit to gurasinghMS/openvmm that referenced this pull request Apr 10, 2026
Minor change. Came across this issue when debugging a case with several
queues.

P.S. Had to do some type gymnastics to avoid the immutable reference
borrow (string being sent to the info span)

(cherry picked from commit 1e28edf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants