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 PcrEvent::new_in_box/PcrEventInputs::new_in_box #1246

Merged
merged 7 commits into from
Jul 16, 2024

Conversation

nicholasbishop
Copy link
Contributor

Fixes #780

The initial commits are modifying the structs so that the make_boxed utility can be used.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

@nicholasbishop nicholasbishop force-pushed the bishop-tcg-new-boxed branch 2 times, most recently from eb28d30 to f110e57 Compare July 15, 2024 04:24
@nicholasbishop nicholasbishop marked this pull request as draft July 15, 2024 04:25
@nicholasbishop
Copy link
Contributor Author

(Marking draft til I finish fixing errors)

This is needed for make_boxed.
This is needed for make_boxed. Technically it's slightly less efficient, since
the input buf must now be initialized, but in practice these structs are quite
small and not created all that often, so there's no meaningful difference.
A manual implementation is required since this is a packed struct.
@nicholasbishop nicholasbishop marked this pull request as ready for review July 15, 2024 17:20
Copy link
Contributor

@phip1611 phip1611 left a comment

Choose a reason for hiding this comment

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

Very nicely done. A great use of make_boxed!

@phip1611 phip1611 added this pull request to the merge queue Jul 16, 2024
Merged via the queue into rust-osdev:main with commit 1fa9408 Jul 16, 2024
12 checks passed
@nicholasbishop nicholasbishop deleted the bishop-tcg-new-boxed branch July 16, 2024 15:22
This pull request was closed.
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.

PcrEventInputs alloc-only method?
2 participants