Skip to content

CI: Update to Rust 1.94#2922

Open
smalis-msft wants to merge 2 commits intomicrosoft:mainfrom
smalis-msft:rust-194
Open

CI: Update to Rust 1.94#2922
smalis-msft wants to merge 2 commits intomicrosoft:mainfrom
smalis-msft:rust-194

Conversation

@smalis-msft
Copy link
Contributor

@smalis-msft smalis-msft commented Mar 10, 2026

We could choose to inline all the cpuid calls since it's no longer unsafe, but I'll leave that for a follow up. After some discussions with Justus he'll update and refactor the Nix config somewhat.

@smalis-msft smalis-msft requested review from a team as code owners March 10, 2026 17:54
Copilot AI review requested due to automatic review settings March 10, 2026 17:54
@github-actions github-actions bot added the unsafe Related to unsafe code label Mar 10, 2026
@github-actions
Copy link

⚠️ 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

Copy link
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

Updates the repository’s Rust toolchain baseline to 1.94 and removes now-unnecessary unsafe wrappers around certain x86_64 CPUID intrinsics.

Changes:

  • Bump workspace rust-version to 1.94.
  • Update CI/rustup toolchain pins from 1.93.1 to 1.94.0 across GitHub Actions and Flowey CI.
  • Remove unsafe usage around __cpuid / __cpuid_count where it is now safe.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
Cargo.toml Bumps workspace rust-version to 1.94.
xsync/Cargo.toml Bumps xsync workspace rust-version to 1.94.
support/safe_intrinsics/src/lib.rs Removes unsafe call site for __cpuid_count.
opentmk/src/platform/hyperv/arch/x86_64/ctx.rs Removes unsafe around __cpuid call.
flowey/flowey_lib_hvlite/src/cfg_rustup_version.rs Updates pinned rustup toolchain string to 1.94.0.
ci-flowey/openvmm-pr.yaml Updates rustup installation toolchain pin to 1.94.0 in Flowey CI.
.github/workflows/openvmm-pr.yaml Updates rustup installation toolchain pin to 1.94.0 in PR workflow.
.github/workflows/openvmm-pr-release.yaml Updates rustup installation toolchain pin to 1.94.0 in PR release workflow.
.github/workflows/openvmm-docs-pr.yaml Updates rustup installation toolchain pin to 1.94.0 in docs PR workflow.
.github/workflows/openvmm-docs-ci.yaml Updates rustup installation toolchain pin to 1.94.0 in docs CI workflow.
.github/workflows/openvmm-ci.yaml Updates rustup installation toolchain pin to 1.94.0 in CI workflow.

You can also share your feedback on Copilot code review. Take the survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

unsafe Related to unsafe code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants