Skip to content

Conversation

@iximeow
Copy link
Member

@iximeow iximeow commented Sep 17, 2025

some plumbing I wrote up to help check the CPU profile from Omicron#8728 across more OS types. I think shortly after 8728 is sorted it makes sense to move a lot of the CPUID stuff to a crate shared with Propolis, one reason being we could bake in known-to-Nexus CPUID profiles in propolis-cli as well. Then we could make --cpuid-profile milan_v1 Just Work without having to copy around blobs of hex for well-defined profiles. but, this is sufficient for now.

@iximeow iximeow requested a review from hawkw October 24, 2025 20:13
Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

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

looks good to me, picked a couple nits

cfg.cpuid_profiles
.get(profile)
.ok_or_else(|| {
anyhow!("CPUID profile not defined: {}", profile)
Copy link
Member

Choose a reason for hiding this comment

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

turbo nit

Suggested change
anyhow!("CPUID profile not defined: {}", profile)
anyhow!("CPUID profile not defined: {profile}",)

also, maybe it would be nice to have this say "not defined in path/to/toml.toml"?

Copy link
Member Author

@iximeow iximeow Oct 28, 2025

Choose a reason for hiding this comment

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

i'll internalize in-line format variables one day.. i was less sure about including the toml path at first because i'd like to check the name against a the kinds of profiles we've got in Nexus (after hoisting cpu_platform.rs out of Omicron, probably), but we can change the way this error is printed when that time comes

@iximeow
Copy link
Member Author

iximeow commented Oct 29, 2025

migrate-from-base failed because this branch is from before versioned APIs and base is after

@iximeow iximeow merged commit 8033a70 into master Oct 29, 2025
10 of 11 checks passed
@iximeow iximeow deleted the ixi/propolis-cli-cpuid branch October 29, 2025 00:01
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.

3 participants