cloud-hypervisor/virtio-devices
Sebastien Boeuf 30e1162d7c virtio: Replace some repr(C, packed) with repr(C)
The goal here is to replace anywhere possible a virtio structure
with a "C, packed" representation by a "C" representation. Some
virtio structures are not expected to be packed, therefore there's
no reason for using the more restrictive "C, packed" representation.

This is important since "packed" representation can still cause
undefined behaviors with Rust 2018.

By removing the need for "packed" representation, we can simplify a
bit of code by deriving the Serialize trait without writing the
implementation ourselves.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-10-07 22:11:36 +02:00
..
src virtio: Replace some repr(C, packed) with repr(C) 2020-10-07 22:11:36 +02:00
Cargo.toml build(deps): bump libc from 0.2.78 to 0.2.79 2020-10-05 07:02:05 +00:00