vmm/devices/virtio/block/vhost_user/
mod.rs1pub mod device;
5pub mod event_handler;
6pub mod persist;
7
8use self::device::VhostUserBlock;
9use crate::devices::virtio::vhost_user::VhostUserError;
10use crate::vstate::interrupts::InterruptError;
11
12pub const NUM_QUEUES: u64 = 1;
14
15pub const QUEUE_SIZE: u16 = 256;
17
18#[derive(Debug, thiserror::Error, displaydoc::Display)]
20pub enum VhostUserBlockError {
21 Config,
23 SnapshottingNotSupported,
25 VhostUser(VhostUserError),
27 Vhost(vhost::Error),
29 EventFd(std::io::Error),
31 Interrupt(InterruptError),
33}