Skip to content

Commit

Permalink
Change alignment of virtiofs structs to maximum alignment of all fields.
Browse files Browse the repository at this point in the history
Alignment of the virtiofs struct was previously based on the alignment
of only the first field. Changed to explicitly use the maximum alignment of all of
the fields and added assertions to ensure this manually-allocated layout
matches the compiler-generated layout.

Fixes #691

Signed-off-by: joannejchen <chenjjoanne@gmail.com>
  • Loading branch information
joannejchen authored and Joanne Chen committed Apr 18, 2023
1 parent 05fd31d commit 0ff5752
Showing 1 changed file with 162 additions and 36 deletions.

0 comments on commit 0ff5752

Please sign in to comment.