Skip to content

Conversation

gurasinghMS
Copy link
Contributor

This is a support PR being made to reduce size of #1858. Added NvmeWorkersContext that stores the input for NvmeWorkers. This will subsequently be used to create new NvmeWorkers when FLR is issued to the test controller.

@Copilot Copilot AI review requested due to automatic review settings August 25, 2025 20:23
@gurasinghMS gurasinghMS requested review from a team as code owners August 25, 2025 20:23
Copy link
Contributor

@Copilot 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

This PR adds a NvmeWorkersContext struct to encapsulate all the input parameters needed to create NvmeWorkers, simplifying the constructor interface and preparing for Function Level Reset (FLR) support where new NvmeWorkers instances need to be created.

  • Introduces NvmeWorkersContext struct to group all constructor parameters
  • Refactors NvmeWorkers::new() to accept the context struct instead of individual parameters
  • Updates the FaultConfiguration structs to be cloneable

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
coordinator.rs Defines NvmeWorkersContext struct and refactors NvmeWorkers::new() to use it
workers.rs Exports the new NvmeWorkersContext struct
pci.rs Updates call site to use NvmeWorkersContext with named field initialization
fault.rs Adds Clone derive to fault configuration structs

@gurasinghMS gurasinghMS merged commit d5da1f7 into microsoft:main Aug 25, 2025
29 checks passed
@gurasinghMS gurasinghMS deleted the support-nvme-worker-context branch August 25, 2025 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants