Home | History | Annotate | Download | only in vm_manager

Lines Matching refs:command

42 void AddTapFdParameter(cvd::Command* crosvm_cmd, const std::string& tap_name) {
66 cvd::Command CrosvmManager::StartCommand() {
75 cvd::Command command(config_->crosvm_binary());
76 command.AddParameter("run");
79 command.AddParameter("--initrd=", config_->ramdisk_image_path());
81 command.AddParameter("--null-audio");
82 command.AddParameter("--mem=", config_->memory_mb());
83 command.AddParameter("--cpus=", config_->cpus());
84 command.AddParameter("--params=", config_->kernel_cmdline_as_string());
86 command.AddParameter("--rwdisk=", config_->system_image_path());
88 command.AddParameter("--rwdisk=", config_->super_image_path());
90 command.AddParameter("--rwdisk=", config_->data_image_path());
91 command.AddParameter("--rwdisk=", config_->cache_image_path());
92 command.AddParameter("--rwdisk=", config_->metadata_image_path());
94 command.AddParameter("--rwdisk=", config_->vendor_image_path());
95 command.AddParameter("--rwdisk=", config_->product_image_path());
97 command.AddParameter("--socket=", GetControlSocketPath(config_));
99 command.AddParameter("--android-fstab=", config_->gsi_fstab_path());
101 command.AddParameter("--single-touch=", config_->touch_socket_path(), ":",
103 command.AddParameter("--keyboard=", config_->keyboard_socket_path());
105 AddTapFdParameter(&command, config_->wifi_tap_name());
106 AddTapFdParameter(&command, config_->mobile_tap_name());
109 command.AddParameter("--disable-sandbox");
112 command.AddParameter("--cid=", config_->vsock_guest_cid());
121 command.RedirectStdIO(cvd::Subprocess::StdIOChannel::kStdOut,
127 command.RedirectStdIO(cvd::Subprocess::StdIOChannel::kStdIn, dev_null);
133 command.AddParameter(config_->GetKernelImageToUse());
135 return command;
139 cvd::Command command(config_->crosvm_binary());
140 command.AddParameter("stop");
141 command.AddParameter(GetControlSocketPath(config_));
143 auto process = command.Start();