cloud-hypervisor/virtio-devices/src
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
..
transport devices, vm-device: Move BusDevice and Bus into vm-device 2020-09-10 09:35:38 +01:00
vhost_user virtio-devices: vhost-user-net: Port to VirtioCommon 2020-09-07 17:39:30 +02:00
vsock ch: Fix various misspelled words 2020-09-23 08:59:31 +01:00
balloon.rs virtio-balloon: Add memory_actual_size to vm.info to show memory actual size 2020-10-01 17:46:30 +02:00
block_io_uring.rs virtio-devices: block: Support multiple data descriptors 2020-09-16 16:13:24 +02:00
block.rs virtio-devices: block: Support multiple data descriptors 2020-09-16 16:13:24 +02:00
console.rs virtio-devices: console: Port to VirtioCommon 2020-09-05 10:06:39 +01:00
device.rs virtio-balloon: Add memory_actual_size to vm.info to show memory actual size 2020-10-01 17:46:30 +02:00
epoll_helper.rs virtio-devices: Acknowledge a device being paused 2020-08-13 14:52:18 +02:00
iommu.rs ch: Fix various misspelled words 2020-09-23 08:59:31 +01:00
lib.rs vmm: Simplify some of the io_uring code 2020-10-07 14:26:49 +02:00
mem.rs virtio: Replace some repr(C, packed) with repr(C) 2020-10-07 22:11:36 +02:00
net_util.rs ch: Fix various misspelled words 2020-09-23 08:59:31 +01:00
net.rs virtio-devices: net: Port to VirtioCommon 2020-09-05 10:06:39 +01:00
pmem.rs virtio: Replace some repr(C, packed) with repr(C) 2020-10-07 22:11:36 +02:00
rng.rs virtio-devices: rng: Port to VirtioCommon 2020-09-05 10:06:39 +01:00
seccomp_filters.rs virtio-devices: mem: Add missing syscall to seccomp filters 2020-09-16 19:20:04 +02:00