We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 324e53a commit 2e5d828Copy full SHA for 2e5d828
src/devices/src/virtio/console/device.rs
@@ -30,9 +30,9 @@ use crate::virtio::{PortDescription, VmmExitObserver};
30
pub(crate) const CONTROL_RXQ_INDEX: usize = 2;
31
pub(crate) const CONTROL_TXQ_INDEX: usize = 3;
32
33
-pub(crate) const AVAIL_FEATURES: u64 = 1 << uapi::VIRTIO_CONSOLE_F_SIZE as u64
34
- | 1 << uapi::VIRTIO_CONSOLE_F_MULTIPORT as u64
35
- | 1 << uapi::VIRTIO_F_VERSION_1 as u64;
+pub(crate) const AVAIL_FEATURES: u64 = (1 << uapi::VIRTIO_CONSOLE_F_SIZE as u64)
+ | (1 << uapi::VIRTIO_CONSOLE_F_MULTIPORT as u64)
+ | (1 << uapi::VIRTIO_F_VERSION_1 as u64);
36
37
#[repr(C)]
38
#[derive(Default)]
0 commit comments