generated from rust-vmm/crate-template
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mshv-bindings: Derive constant instead of hard-coding
Constants like LAPIC_STATE size could be derived by calling size_of on the struct LapicState. In the similar fashion, other values can also be derived. Use a const function to intialize the various component sizes. Signed-off-by: Jinank Jain <[email protected]>
- Loading branch information
1 parent
5673170
commit dadc44e
Showing
1 changed file
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters