Lines Matching refs:preserved_fds
846 preserved_fds: &mut Vec<RawFd>, in append_platform_devices()
856 command.arg(format!("--device-tree-overlay={},filter", add_preserved_fd(preserved_fds, dtbo))); in append_platform_devices()
963 let mut preserved_fds = config.indirect_files.iter().map(|file| file.as_raw_fd()).collect(); in run_vm() localVariable
974 let console_out_arg = format_serial_out_arg(&mut preserved_fds, &config.console_out_fd); in run_vm()
978 .map(|fd| format!(",input={}", add_preserved_fd(&mut preserved_fds, fd))) in run_vm()
980 let log_arg = format_serial_out_arg(&mut preserved_fds, &config.log_fd); in run_vm()
981 let failure_serial_path = add_preserved_fd(&mut preserved_fds, &failure_pipe_write); in run_vm()
982 let ramdump_arg = format_serial_out_arg(&mut preserved_fds, &config.ramdump); in run_vm()
1013 command.arg("--bios").arg(add_preserved_fd(&mut preserved_fds, bootloader)); in run_vm()
1017 command.arg("--initrd").arg(add_preserved_fd(&mut preserved_fds, initrd)); in run_vm()
1027 .arg(add_preserved_fd(&mut preserved_fds, &disk.image)); in run_vm()
1031 command.arg(add_preserved_fd(&mut preserved_fds, kernel)); in run_vm()
1038 .arg(add_preserved_fd(&mut preserved_fds, &control_server_socket.as_raw_descriptor())); in run_vm()
1041 command.arg("--device-tree-overlay").arg(add_preserved_fd(&mut preserved_fds, dt_overlay)); in run_vm()
1102 preserved_fds.push(tap_fd); in run_vm()
1112 format!("evdev[path={}]", add_preserved_fd(&mut preserved_fds, file)) in run_vm()
1115 format!("keyboard[path={}]", add_preserved_fd(&mut preserved_fds, file)) in run_vm()
1118 format!("mouse[path={}]", add_preserved_fd(&mut preserved_fds, file)) in run_vm()
1122 add_preserved_fd(&mut preserved_fds, file), in run_vm()
1139 append_platform_devices(&mut command, &mut preserved_fds, &config)?; in run_vm()
1141 debug!("Preserving FDs {:?}", preserved_fds); in run_vm()
1142 command.preserved_fds(preserved_fds); in run_vm()
1205 fn add_preserved_fd(preserved_fds: &mut Vec<RawFd>, file: &dyn AsRawFd) -> String { in add_preserved_fd()
1207 preserved_fds.push(fd); in add_preserved_fd()
1213 fn format_serial_out_arg(preserved_fds: &mut Vec<RawFd>, file: &Option<File>) -> String { in format_serial_out_arg()
1215 format!("type=file,path={}", add_preserved_fd(preserved_fds, file)) in format_serial_out_arg()