Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virt_mshv_vtl: Returning appropriate values for various CPUIDs. #749

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vibhutet
Copy link
Contributor

Addresses issue #556.

@vibhutet vibhutet requested a review from a team as a code owner January 30, 2025 22:41
@@ -32,6 +35,8 @@ pub const TDX_REQUIRED_LEAVES: &[(CpuidFunction, Option<u32>)] = &[
(CpuidFunction::CacheParameters, Some(3)),
];

static mut MAX_XFD: u32 = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

statis muts are wildly unsafe, and the code as currently implemented provides no guarantee that there will be no concurrent accessors, even if there aren't today. Please remove this.

Copy link
Contributor

Choose a reason for hiding this comment

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

This value doesn't even seem to be used anywhere?

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