/aosp_15_r20/external/crosvm/devices/src/virtio/vhost_user_frontend/ |
H A D | mod.rs | 32 use vmm_vhost::message::VhostUserProtocolFeatures; 62 protocol_features: VhostUserProtocolFeatures, 162 let mut allow_protocol_features = VhostUserProtocolFeatures::CONFIG in new_internal() 163 | VhostUserProtocolFeatures::MQ in new_internal() 164 | VhostUserProtocolFeatures::BACKEND_REQ in new_internal() 165 | VhostUserProtocolFeatures::DEVICE_STATE; in new_internal() 171 allow_protocol_features |= VhostUserProtocolFeatures::SHARED_MEMORY_REGIONS; in new_internal() 177 let mut protocol_features = VhostUserProtocolFeatures::empty(); in new_internal() 196 if protocol_features.contains(VhostUserProtocolFeatures::BACKEND_REQ) { in new_internal() 213 let num_queues = if protocol_features.contains(VhostUserProtocolFeatures::MQ) { in new_internal() [all …]
|
H A D | error.rs | 8 use vmm_vhost::message::VhostUserProtocolFeatures; 48 ProtocolFeatureNotNegoiated(VhostUserProtocolFeatures),
|
/aosp_15_r20/external/crosvm/third_party/vmm_vhost/src/ |
H A D | backend_client.rs | 117 self.acked_protocol_features & VhostUserProtocolFeatures::LOG_SHMFD.bits() != 0; in set_log_base() 225 if self.acked_protocol_features & VhostUserProtocolFeatures::DEVICE_STATE.bits() == 0 { in set_device_state_fd() 260 if self.acked_protocol_features & VhostUserProtocolFeatures::DEVICE_STATE.bits() == 0 { in check_device_state() 272 pub fn get_protocol_features(&self) -> Result<VhostUserProtocolFeatures> { in get_protocol_features() argument 278 Ok(VhostUserProtocolFeatures::from_bits_truncate(val.value)) in get_protocol_features() 282 pub fn set_protocol_features(&mut self, features: VhostUserProtocolFeatures) -> Result<()> { in set_protocol_features() 286 if features.contains(VhostUserProtocolFeatures::SHARED_MEMORY_REGIONS) in set_protocol_features() 287 && !features.contains(VhostUserProtocolFeatures::BACKEND_REQ) in set_protocol_features() 343 if self.acked_protocol_features & VhostUserProtocolFeatures::CONFIG.bits() == 0 { in get_config() 382 if self.acked_protocol_features & VhostUserProtocolFeatures::CONFIG.bits() == 0 { in set_config() [all …]
|
H A D | backend_server.rs | 50 fn get_protocol_features(&mut self) -> Result<VhostUserProtocolFeatures>; in get_protocol_features() argument 141 fn get_protocol_features(&mut self) -> Result<VhostUserProtocolFeatures> { in get_protocol_features() argument 225 protocol_features: VhostUserProtocolFeatures, 245 protocol_features: VhostUserProtocolFeatures::empty(), in new() 476 if self.acked_protocol_features & VhostUserProtocolFeatures::MQ.bits() == 0 { in process_message() 500 if self.acked_protocol_features & VhostUserProtocolFeatures::CONFIG.bits() == 0 { in process_message() 507 if self.acked_protocol_features & VhostUserProtocolFeatures::CONFIG.bits() == 0 { in process_message() 516 if self.acked_protocol_features & VhostUserProtocolFeatures::BACKEND_REQ.bits() == 0 in process_message() 526 if self.acked_protocol_features & VhostUserProtocolFeatures::INFLIGHT_SHMFD.bits() in process_message() 542 if self.acked_protocol_features & VhostUserProtocolFeatures::INFLIGHT_SHMFD.bits() in process_message() [all …]
|
H A D | test_backend.rs | 172 fn get_protocol_features(&mut self) -> Result<VhostUserProtocolFeatures> { in get_protocol_features() argument 173 Ok(VhostUserProtocolFeatures::all()) in get_protocol_features() 209 if self.acked_protocol_features & VhostUserProtocolFeatures::CONFIG.bits() == 0 { in get_config() 222 if self.acked_protocol_features & VhostUserProtocolFeatures::CONFIG.bits() == 0 { in set_config()
|
H A D | lib.rs | 319 VhostUserProtocolFeatures::all().bits() in test_set_features() 334 assert_eq!(features.bits(), VhostUserProtocolFeatures::all().bits()); in test_set_features() 364 VhostUserProtocolFeatures::all().bits() in test_client_server_process() 421 assert_eq!(features.bits(), VhostUserProtocolFeatures::all().bits()); in test_client_server_process()
|
H A D | message.rs | 405 pub struct VhostUserProtocolFeatures: u64 {
|
/aosp_15_r20/external/rust/android-crates-io/crates/vhost/src/vhost_user/ |
D | slave_req_handler.rs | 61 fn get_protocol_features(&self) -> Result<VhostUserProtocolFeatures>; in get_protocol_features() argument 101 fn get_protocol_features(&mut self) -> Result<VhostUserProtocolFeatures>; in get_protocol_features() argument 182 fn get_protocol_features(&self) -> Result<VhostUserProtocolFeatures> { in get_protocol_features() argument 250 protocol_features: VhostUserProtocolFeatures, 267 protocol_features: VhostUserProtocolFeatures::empty(), in new() 282 fn check_proto_feature(&self, feat: VhostUserProtocolFeatures) -> Result<()> { in check_proto_feature() 427 let features = features | VhostUserProtocolFeatures::XEN_MMAP; in handle_request() 442 self.check_proto_feature(VhostUserProtocolFeatures::XEN_MMAP)?; in handle_request() 445 self.check_proto_feature(VhostUserProtocolFeatures::MQ)?; in handle_request() 464 self.check_proto_feature(VhostUserProtocolFeatures::CONFIG)?; in handle_request() [all …]
|
D | master.rs | 27 fn get_protocol_features(&mut self) -> Result<VhostUserProtocolFeatures>; in get_protocol_features() argument 30 fn set_protocol_features(&mut self, features: VhostUserProtocolFeatures) -> Result<()>; in set_protocol_features() 219 if node.acked_protocol_features & VhostUserProtocolFeatures::LOG_SHMFD.bits() != 0 in set_log_base() 336 fn get_protocol_features(&mut self) -> Result<VhostUserProtocolFeatures> { in get_protocol_features() argument 344 match VhostUserProtocolFeatures::from_bits(node.protocol_features) { in get_protocol_features() 350 fn set_protocol_features(&mut self, features: VhostUserProtocolFeatures) -> Result<()> { in set_protocol_features() 364 node.check_proto_feature(VhostUserProtocolFeatures::MQ)?; in get_queue_num() 406 node.check_proto_feature(VhostUserProtocolFeatures::CONFIG)?; in get_config() 439 node.check_proto_feature(VhostUserProtocolFeatures::CONFIG)?; in set_config() 447 node.check_proto_feature(VhostUserProtocolFeatures::SLAVE_REQ)?; in set_slave_request_fd() [all …]
|
D | mod.rs | 25 pub use self::message::{VhostUserProtocolFeatures, VhostUserVirtioFeatures}; 66 InactiveOperation(VhostUserProtocolFeatures), 304 VhostUserProtocolFeatures::all().bits() in test_set_features() 319 assert_eq!(features.bits(), VhostUserProtocolFeatures::all().bits()); in test_set_features() 349 let mut features = VhostUserProtocolFeatures::all(); in test_master_slave_process() 353 features.remove(VhostUserProtocolFeatures::XEN_MMAP); in test_master_slave_process() 415 assert_eq!(features.bits(), VhostUserProtocolFeatures::all().bits()); in test_master_slave_process() 419 features.remove(VhostUserProtocolFeatures::XEN_MMAP); in test_master_slave_process() 524 assert!(!Error::InactiveOperation(VhostUserProtocolFeatures::all()).should_reconnect()); in test_should_reconnect()
|
D | dummy_slave.rs | 49 fn check_proto_feature(&self, feat: VhostUserProtocolFeatures) -> Result<()> { in check_proto_feature() 191 fn get_protocol_features(&mut self) -> Result<VhostUserProtocolFeatures> { in get_protocol_features() argument 192 Ok(VhostUserProtocolFeatures::all()) in get_protocol_features() 233 self.check_proto_feature(VhostUserProtocolFeatures::CONFIG)?; in get_config() 248 self.check_proto_feature(VhostUserProtocolFeatures::CONFIG)?; in set_config()
|
D | message.rs | 395 pub struct VhostUserProtocolFeatures: u64 {
|
/aosp_15_r20/external/rust/android-crates-io/crates/vhost-user-backend/src/ |
D | backend.rs | 25 use vhost::vhost_user::message::VhostUserProtocolFeatures; 55 fn protocol_features(&self) -> VhostUserProtocolFeatures; in protocol_features() argument 136 fn protocol_features(&self) -> VhostUserProtocolFeatures; in protocol_features() argument 219 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features() argument 284 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features() argument 350 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features() argument 435 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features() argument 436 VhostUserProtocolFeatures::all() in protocol_features() 496 VhostUserProtocolFeatures::all() in test_new_mock_backend_mutex() 526 VhostUserProtocolFeatures::all() in test_new_mock_backend_rwlock()
|
D | handler.rs | 14 VhostUserConfigFlags, VhostUserMemoryRegion, VhostUserProtocolFeatures, 459 fn get_protocol_features(&mut self) -> VhostUserResult<VhostUserProtocolFeatures> { in get_protocol_features() argument 514 if self.acked_protocol_features & VhostUserProtocolFeatures::REPLY_ACK.bits() != 0 { in set_slave_req_fd()
|
/aosp_15_r20/external/crosvm/devices/src/virtio/vhost/user/device/ |
H A D | gpu.rs | 26 use vmm_vhost::message::VhostUserProtocolFeatures; 125 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features() argument 126 VhostUserProtocolFeatures::CONFIG in protocol_features() 127 | VhostUserProtocolFeatures::BACKEND_REQ in protocol_features() 128 | VhostUserProtocolFeatures::MQ in protocol_features() 129 | VhostUserProtocolFeatures::SHARED_MEMORY_REGIONS in protocol_features() 130 | VhostUserProtocolFeatures::DEVICE_STATE in protocol_features()
|
H A D | block.rs | 59 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features() argument 60 VhostUserProtocolFeatures::CONFIG in protocol_features() 61 | VhostUserProtocolFeatures::MQ in protocol_features() 62 | VhostUserProtocolFeatures::BACKEND_REQ in protocol_features() 63 | VhostUserProtocolFeatures::DEVICE_STATE in protocol_features()
|
H A D | console.rs | 18 use vmm_vhost::message::VhostUserProtocolFeatures; 84 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features() argument 85 VhostUserProtocolFeatures::CONFIG in protocol_features() 86 | VhostUserProtocolFeatures::MQ in protocol_features() 87 | VhostUserProtocolFeatures::DEVICE_STATE in protocol_features()
|
H A D | handler.rs | 86 use vmm_vhost::message::VhostUserProtocolFeatures; 149 fn protocol_features(&self) -> VhostUserProtocolFeatures; in protocol_features() argument 311 acked_protocol_features: VhostUserProtocolFeatures, 350 acked_protocol_features: VhostUserProtocolFeatures::empty(), in new() 433 fn get_protocol_features(&mut self) -> VhostResult<VhostUserProtocolFeatures> { in get_protocol_features() argument 438 let features = match VhostUserProtocolFeatures::from_bits(features) { in set_protocol_features() 777 VhostUserProtocolFeatures::from_bits(snapshot.acked_protocol_features) in check_device_state() 1043 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features() argument 1045 VhostUserProtocolFeatures::CONFIG | VhostUserProtocolFeatures::DEVICE_STATE; in protocol_features() 1047 features |= VhostUserProtocolFeatures::BACKEND_REQ; in protocol_features()
|
H A D | net.rs | 26 use vmm_vhost::message::VhostUserProtocolFeatures; 162 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features() argument 163 VhostUserProtocolFeatures::CONFIG | VhostUserProtocolFeatures::DEVICE_STATE in protocol_features()
|
H A D | fs.rs | 24 use vmm_vhost::message::VhostUserProtocolFeatures; 100 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features() argument 101 VhostUserProtocolFeatures::CONFIG | VhostUserProtocolFeatures::MQ in protocol_features()
|
H A D | snd.rs | 26 use vmm_vhost::message::VhostUserProtocolFeatures; 158 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features() argument 159 VhostUserProtocolFeatures::CONFIG in protocol_features() 160 | VhostUserProtocolFeatures::MQ in protocol_features() 161 | VhostUserProtocolFeatures::DEVICE_STATE in protocol_features()
|
H A D | vsock.rs | 32 use vmm_vhost::message::VhostUserProtocolFeatures; 60 protocol_features: VhostUserProtocolFeatures, 107 protocol_features: VhostUserProtocolFeatures::MQ | VhostUserProtocolFeatures::CONFIG, in build() 147 fn get_protocol_features(&mut self) -> Result<VhostUserProtocolFeatures> { in get_protocol_features() argument
|
H A D | wl.rs | 34 use vmm_vhost::message::VhostUserProtocolFeatures; 159 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features() argument 160 VhostUserProtocolFeatures::BACKEND_REQ | VhostUserProtocolFeatures::SHARED_MEMORY_REGIONS in protocol_features()
|
/aosp_15_r20/external/rust/android-crates-io/crates/vhost-user-backend/tests/ |
D | vhost-user-server.rs | 11 VhostUserConfigFlags, VhostUserHeaderFlag, VhostUserInflight, VhostUserProtocolFeatures, 55 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features() argument 56 VhostUserProtocolFeatures::all() in protocol_features() 120 assert!(proto.contains(VhostUserProtocolFeatures::REPLY_ACK)); in setup_master() 136 assert!(proto.contains(VhostUserProtocolFeatures::REPLY_ACK)); in vhost_user_client() 149 assert!(proto.contains(VhostUserProtocolFeatures::REPLY_ACK)); in vhost_user_client()
|
/aosp_15_r20/external/rust/crates/vhost-device-vsock/src/ |
D | vhu_vsock.rs | 12 use vhost::vhost_user::message::{VhostUserProtocolFeatures, VhostUserVirtioFeatures}; 275 fn protocol_features(&self) -> VhostUserProtocolFeatures { in protocol_features() argument 276 VhostUserProtocolFeatures::CONFIG in protocol_features()
|