cloud-hypervisor/virtio-devices/src
Alyssa Ross 451d3fb2f0 vmm: limit VSOCK CIDs to 32 bits
The VIRTIO specification[1] says:

> The upper 32 bits of the CID are reserved and zeroed.

We should therefore not allow the user to supply a VSOCK CID with
those bits set.  To accomplish this, limit the public API of the
virtio-vsock device to only accept 32-bit CIDs, while still using
64-bit CIDs internally since that's how virtio-vsock works.

[1]: https://docs.oasis-open.org/virtio/virtio/v1.2/csd01/virtio-v1.2-csd01.html#x1-4400004

Signed-off-by: Alyssa Ross <hi@alyssa.is>
2024-01-10 17:28:56 +00:00
..
transport vmm: assign each pci segment 32-bit mmio allocator 2023-11-20 15:33:50 -08:00
vhost_user build: Upgrade vm-memory crates and its consumers 2023-11-14 09:17:42 +00:00
vsock vmm: limit VSOCK CIDs to 32 bits 2024-01-10 17:28:56 +00:00
balloon.rs balloon: let balloon deflation works on page size other than 4k 2023-08-21 16:35:23 +01:00
block.rs vmm: use RateLimiterGroup for virtio-blk devices 2024-01-03 10:21:06 -08:00
console.rs misc: Stop using deprecated functions from vm-memory crate 2023-11-14 09:17:42 +00:00
device.rs virtio-net: net: Wait for threads to exit on Drop 2022-11-10 07:46:16 -08:00
epoll_helper.rs virtio-devices: modify or provide safety comments 2022-11-18 12:50:01 +00:00
iommu.rs virtio-devices: properly join all threads on Drop 2023-01-12 18:03:33 +00:00
lib.rs virtio-devices: Avoid clashing names in imports 2023-04-22 10:33:46 +01:00
mem.rs virtio-devices: typo fixes 2023-01-25 10:38:31 +00:00
net.rs fuzz: fix unused import warnings 2024-01-08 17:39:05 +00:00
pmem.rs virtio-devices: properly join all threads on Drop 2023-01-12 18:03:33 +00:00
rng.rs misc: Stop using deprecated functions from vm-memory crate 2023-11-14 09:17:42 +00:00
seccomp_filters.rs virtio-devices, vmm: Update seccomp list 2023-10-31 15:34:17 +00:00
thread_helper.rs virtio-devices: Shutdown VMM upon worker thread errors 2022-08-16 11:45:44 +01:00
vdpa.rs misc: Automatically fix cargo clippy issues added in 1.65 (stable) 2022-12-14 14:27:19 +00:00
watchdog.rs virtio-devices: properly join all threads on Drop 2023-01-12 18:03:33 +00:00