File tree 1 file changed +15
-14
lines changed
src/vmm/src/devices/virtio/vsock
1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change 5
5
// Use of this source code is governed by a BSD-style license that can be
6
6
// found in the THIRD-PARTY file.
7
7
8
+ //! This is the `VirtioDevice` implementation for our vsock device. It handles the virtio-level
9
+ //! device logic: feature negociation, device configuration, and device activation.
10
+ //!
11
+ //! We aim to conform to the VirtIO v1.1 spec:
12
+ //! https://docs.oasis-open.org/virtio/virtio/v1.1/virtio-v1.1.html
13
+ //!
14
+ //! The vsock device has two input parameters: a CID to identify the device, and a
15
+ //! `VsockBackend` to use for offloading vsock traffic.
16
+ //!
17
+ //! Upon its activation, the vsock device registers handlers for the following events/FDs:
18
+ //! - an RX queue FD;
19
+ //! - a TX queue FD;
20
+ //! - an event queue FD; and
21
+ //! - a backend FD.
22
+
8
23
use std:: fmt:: Debug ;
9
24
10
- /// This is the `VirtioDevice` implementation for our vsock device. It handles the virtio-level
11
- /// device logic: feature negociation, device configuration, and device activation.
12
- ///
13
- /// We aim to conform to the VirtIO v1.1 spec:
14
- /// https://docs.oasis-open.org/virtio/virtio/v1.1/virtio-v1.1.html
15
- ///
16
- /// The vsock device has two input parameters: a CID to identify the device, and a
17
- /// `VsockBackend` to use for offloading vsock traffic.
18
- ///
19
- /// Upon its activation, the vsock device registers handlers for the following events/FDs:
20
- /// - an RX queue FD;
21
- /// - a TX queue FD;
22
- /// - an event queue FD; and
23
- /// - a backend FD.
24
25
use log:: { error, warn} ;
25
26
use utils:: byte_order;
26
27
use utils:: eventfd:: EventFd ;
You can’t perform that action at this time.
0 commit comments