device_virtio_vsock/
lib.rs

1// Copyright 2022 The ChromiumOS Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5//! This module implements the virtio vsock device.
6//!
7//! Currently, this is only implemented for Windows.
8//! For Linux, please use the vhost-vsock device, which delegates the vsock
9//! implementation to the kernel.
10
11mod sys;
12#[cfg(any(target_os = "android", target_os = "linux"))]
13pub mod vhost;
14
15pub use sys::VirtioVsockModule;
16pub use sys::Vsock;
17pub use sys::VsockConfig;