mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 12:35:26 +00:00
Add #[repr(packed)] to struct virtio_blk_config to make its size same with the the origianl C struct. The packed annotation will remove 4-byte padding at the end of the struct and make the size of the struct smaller. (64 bytes -> 60 bytes) Since it won't affect offsets of any fields, it shouldn't change any behavior when the guest reads a config field. But, it can matter when the entire config struct is passed via vhost-user protocol. BUG=none TEST=run a VM Change-Id: I4dca9f1bdd93166192eca4d05d542ce851852aa7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2726059 Reviewed-by: Dylan Reid <dgreid@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_serial | ||
Cargo.toml |