Lines Matching +full:add +full:- +full:user +full:- +full:device

9 // SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
45 // Polling for 50us should be enough to cover for the device latency
78 pub const SYNTAX: &str = "vhost-user-block backend parameters \
84 fn from(e: Error) -> Self { in from()
106 ) -> Result<Self> { in new()
121 ) -> bool { in process_queue()
213 ) -> Result<Self> { in new()
237 seg_max: 128 - 2, in new()
300 fn num_queues(&self) -> usize { in num_queues()
304 fn max_queue_size(&self) -> usize { in max_queue_size()
308 fn features(&self) -> u64 { in features()
330 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features()
348 ) -> VhostUserBackendResult<()> { in handle_event()
374 // vm-virtio's Queue implementation only checks avail_index in handle_event()
398 fn get_config(&self, _offset: u32, _size: u32) -> Vec<u8> { in get_config()
402 fn set_config(&mut self, offset: u32, data: &[u8]) -> result::Result<(), io::Error> { in set_config()
416 fn exit_event(&self, thread_index: usize) -> Option<EventFd> { in exit_event()
427 fn queues_per_thread(&self) -> Vec<u64> { in queues_per_thread()
434 ) -> VhostUserBackendResult<()> { in update_memory()
450 fn parse(backend: &str) -> Result<Self> { in parse()
453 .add("path") in parse()
454 .add("readonly") in parse()
455 .add("direct") in parse()
456 .add("num_queues") in parse()
457 .add("queue_size") in parse()
458 .add("socket") in parse()
459 .add("poll_queue"); in parse()
528 let name = "vhost-user-blk-backend"; in start_block_backend()
535 "Failed to start daemon for vhost-user-block with error: {:?}\n", in start_block_backend()