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

Change alignment of virtiofs structs to be based on the first field. #709

Merged
merged 1 commit into from
Apr 19, 2023

Commits on Apr 19, 2023

  1. Change alignment of virtiofs structs to maximum alignment of all fields.

    Alignment of the virtiofs struct was previously based on the alignment
    of only the first field and size was not padded. 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 hermit-os#691
    
    Signed-off-by: joannejchen <chenjjoanne@gmail.com>
    joannejchen authored and Joanne Chen committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    d8745ad View commit details
    Browse the repository at this point in the history