Skip to content

netvsp: gdma driver report git commit on release 1.7.2511#3708

Open
erfrimod wants to merge 3 commits into
microsoft:release/1.7.2511from
erfrimod:erfrimod/gdma-driver-git-on-release-1.7.2511
Open

netvsp: gdma driver report git commit on release 1.7.2511#3708
erfrimod wants to merge 3 commits into
microsoft:release/1.7.2511from
erfrimod:erfrimod/gdma-driver-git-on-release-1.7.2511

Conversation

@erfrimod

@erfrimod erfrimod commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Cherry Picks of:

(#2963) | netvsp: gdma driver report git commit | 2943441
(#3071) | build_info: relax requirement that openhcl version... | 692483a

Cherry-pick was almost clean. Two exceptions:

  • Needed to add OS_TYPE_OHCL const to gdma_defs lib.rs (one line)
  • Merge conflict in verify_vf_driver_version gdma_driver.rs

erfrimod added 2 commits June 10, 2026 12:59
Soc needs a signal for determining what features are available. During
triage, soc logs will provide more information to determine which
version of the Gdma driver and OpenHCL was running.

- OSVersionString1 set to "OpenHCL"
- OSVersionString2 set to git commit
- OPENHCL_VERSION split into 4 values and supplied to
  - OSVersionMajor
  - OSVersionMinor
  - OSVersionBuild
  - OSVersionPlatform
microsoft#3071)

Follow-up to microsoft#2963

Some CI pipelines supply a zero for major version, causing build to
fail. Removing the asserts that fail on `0` values.

`OPENHCL_VERSION=0.8.175.0`

```
133 |     assert!(major != 0, "major version must be non-zero");
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the failure occurred here
```
Copilot AI review requested due to automatic review settings June 10, 2026 20:01
@erfrimod erfrimod requested review from a team as code owners June 10, 2026 20:01
@github-actions github-actions Bot added the unsafe Related to unsafe code label Jun 10, 2026
@github-actions

Copy link
Copy Markdown

⚠️ Unsafe Code Detected

This PR modifies files containing unsafe Rust code. Extra scrutiny is required during review.

For more on why we check whole files, instead of just diffs, check out the Rustonomicon

@github-actions github-actions Bot added release_1.7.2511 Targets the release/1.7.2511 branch. and removed unsafe Related to unsafe code labels Jun 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 cherry-picks changes to have the MANA/GDMA VF driver report OpenHCL identity (product + git revision) and a parsed OPENHCL_VERSION to the SOC via the existing GDMA_VERIFY_VF_DRIVER_VERSION request, improving field triage and feature-detection in logs for release 1.7.2511.

Changes:

  • Populate GdmaVerifyVerReq with os_type, os_ver_{major,minor,build,platform}, and os_ver_str{1,2} (product name + git SHA) from build_info.
  • Log the reported driver identity/version on the HWC side when handling GDMA_VERIFY_VF_DRIVER_VERSION.
  • Add compile-time parsing (and tests) for OPENHCL_VERSION into 4 numeric components, allowing zero-valued components.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
vm/devices/net/mana_driver/src/gdma_driver.rs Sends OpenHCL identity + version fields to SOC in the verify-version request.
vm/devices/net/mana_driver/Cargo.toml Adds build_info dependency to source version/product metadata.
vm/devices/net/gdma/src/hwc.rs Logs VF driver identity/version fields received in verify-version requests.
vm/devices/net/gdma_defs/src/lib.rs Adds OS_TYPE_OHCL constant used by the VF driver request.
openhcl/build_info/src/lib.rs Adds const-time parsing of OPENHCL_VERSION into 4 u32 components plus unit tests.
Cargo.lock Records the new build_info dependency for mana_driver.

@github-actions github-actions Bot added the unsafe Related to unsafe code label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_1.7.2511 Targets the release/1.7.2511 branch. unsafe Related to unsafe code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants