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

Add definition for flags in IGVM_VHS_MEMORY_MAP_ENTRY #8

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

msft-jlange
Copy link
Contributor

Add meaning for the flags field in the IGVM_VHS_MEMORY_MAP_ENTRY structure

#[bitfield(u16)]
#[derive(AsBytes, FromBytes, FromZeroes, PartialEq, Eq)]
pub struct MemoryMapEntryFlags {
/// memory is in the shared state, and an explicit call must be made to
Copy link
Member

Choose a reason for hiding this comment

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

Sorry to be pedantic, but do you mind making this a sentence (ie capitalize Memory and add a period). It shows up a bit nicer in the generated rustdocs that way.

Copy link
Contributor Author

@msft-jlange msft-jlange Nov 27, 2023

Choose a reason for hiding this comment

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

None of the other bitfield structs in this file use capital letters - perhaps the entire file should match a single desired standard?

@chris-oo chris-oo self-assigned this Nov 27, 2023
@chris-oo chris-oo enabled auto-merge (squash) November 27, 2023 21:23
@chris-oo chris-oo merged commit 7133b98 into microsoft:main Nov 27, 2023
5 checks passed
@msft-jlange msft-jlange deleted the memory_map_flags branch November 27, 2023 21:24
chris-oo added a commit to chris-oo/igvm that referenced this pull request Feb 22, 2024
chris-oo added a commit that referenced this pull request Feb 27, 2024
…yMapEntryFlags (#30)

PR #17 meant to revert PR #8 and PR #11 but instead reverted PR #14
incorrectly.

Fix this by reapplying PR #14 and correctly reverting PR #8 and PR #11.
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