cloud-hypervisor/virtio-devices/src/vsock
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
..
csm virtio-devices: vsock: Fix slow vector initialization 2023-08-22 12:01:54 +01:00
unix vmm: limit VSOCK CIDs to 32 bits 2024-01-10 17:28:56 +00:00
device.rs vmm: limit VSOCK CIDs to 32 bits 2024-01-10 17:28:56 +00:00
mod.rs vmm: limit VSOCK CIDs to 32 bits 2024-01-10 17:28:56 +00:00
packet.rs virtio-devices: vsock: Support single descriptor 2023-08-29 15:36:49 -07:00