Lines Matching full:socket
37 /// Filesystem socket is missing
38 #[error("Error parsing --fs: socket missing")]
43 /// Missing vsock socket path parameter.
44 #[error("Error parsing --vsock: socket missing")]
139 /// Missing socket for userspace device
140 #[error("Error parsing --user-device: socket missing")]
176 /// Missing socket path for console
177 #[error("Path missing when using socket console mode")]
186 /// Both socket and path specified
187 #[error("Disk path and vhost socket both provided")]
192 /// No socket provided for vhost_use
193 #[error("No socket provided when using vhost-user")]
1027 vhost_user=on|off,socket=<vhost_user_socket_path>,\
1044 .add("socket") in parse()
1089 let vhost_socket = parser.get("socket"); in parse()
1253 vhost_user=<vhost_user_enable>,socket=<vhost_user_socket_path>,vhost_mode=client|server,\
1275 .add("socket") in parse()
1336 let vhost_socket = parser.get("socket"); in parse()
1537 \"tag=<tag_name>,socket=<socket_path>,num_queues=<number_of_queues>,\
1546 .add("socket") in parse()
1555 let socket = PathBuf::from(parser.get("socket").ok_or(Error::ParseFsSockMissing)?); in parse() localVariable
1575 socket, in parse()
1680 .add("socket"); in parse()
1684 let mut socket: Option<PathBuf> = None; in parse() localVariable
1700 } else if parser.is_set("socket") { in parse()
1701 mode = ConsoleOutputMode::Socket; in parse()
1702 socket = Some(PathBuf::from(parser.get("socket").ok_or( in parse()
1718 socket, in parse()
1835 "Userspace device socket=<socket_path>,id=<device_id>,pci_segment=<segment_id>\"";
1839 parser.add("socket").add("id").add("pci_segment"); in parse()
1842 let socket = parser in parse() localVariable
1843 .get("socket") in parse()
1853 socket, in parse()
1940 … \"cid=<context_id>,socket=<socket_path>,iommu=on|off,id=<device_id>,pci_segment=<segment_id>\"";
1945 .add("socket") in parse()
1952 let socket = parser in parse() localVariable
1953 .get("socket") in parse()
1973 socket, in parse()
2229 \"(UNIX Domain Socket from swtpm) socket=</path/to/a/socket>\"";
2233 parser.add("socket"); in parse()
2235 let socket = parser in parse() localVariable
2236 .get("socket") in parse()
2239 Ok(TpmConfig { socket }) in parse()
2809 socket: tpm_conf.socket, in parse()
3256 DiskConfig::parse("vhost_user=true,socket=/tmp/sock")?, in test_disk_parsing()
3390 "mac=de:ad:be:ef:12:34,host_mac=12:34:de:ad:be:ef,vhost_user=true,socket=/tmp/sock" in test_net_parsing()
3451 socket: PathBuf::from("/tmp/sock"), in fs_fixture()
3462 // "tag" and "socket" must be supplied in test_parse_fs()
3465 FsConfig::parse("socket=/tmp/sock").unwrap_err(); in test_parse_fs()
3466 assert_eq!(FsConfig::parse("tag=mytag,socket=/tmp/sock")?, fs_fixture()); in test_parse_fs()
3468 FsConfig::parse("tag=mytag,socket=/tmp/sock,num_queues=4,queue_size=1024")?, in test_parse_fs()
3528 socket: None, in test_console_parsing()
3537 socket: None, in test_console_parsing()
3546 socket: None, in test_console_parsing()
3555 socket: None, in test_console_parsing()
3564 socket: None, in test_console_parsing()
3573 socket: None, in test_console_parsing()
3582 socket: None, in test_console_parsing()
3586 ConsoleConfig::parse("socket=/tmp/serial.sock,iommu=on")?, in test_console_parsing()
3588 mode: ConsoleOutputMode::Socket, in test_console_parsing()
3591 socket: Some(PathBuf::from("/tmp/serial.sock")), in test_console_parsing()
3667 TpmConfig::parse("socket=/var/run/tpm.sock")?, in test_tpm_parsing()
3669 socket: PathBuf::from("/var/run/tpm.sock"), in test_tpm_parsing()
3677 // socket and cid is required in test_vsock_parsing()
3680 VsockConfig::parse("socket=/tmp/sock,cid=3")?, in test_vsock_parsing()
3683 socket: PathBuf::from("/tmp/sock"), in test_vsock_parsing()
3690 VsockConfig::parse("socket=/tmp/sock,cid=3,iommu=on")?, in test_vsock_parsing()
3693 socket: PathBuf::from("/tmp/sock"), in test_vsock_parsing()
3957 socket: None, in test_config_validation()
3963 socket: None, in test_config_validation()
4253 socket: PathBuf::new(), in test_config_validation()
4329 socket: PathBuf::new(), in test_config_validation()
4347 socket: PathBuf::new(), in test_config_validation()