Home
last modified time | relevance | path

Searched refs:VmRequest (Results 1 – 6 of 6) sorted by relevance

/external/crosvm/libcrosvm_control/src/
Dlib.rs17 UsbControlResult, VmRequest, VmResponse,
36 vms_request(&VmRequest::Exit, &socket_path).is_ok() in crosvm_client_stop_vm()
51 vms_request(&VmRequest::Suspend, &socket_path).is_ok() in crosvm_client_suspend_vm()
66 vms_request(&VmRequest::Resume, &socket_path).is_ok() in crosvm_client_resume_vm()
83 vms_request(&VmRequest::BalloonCommand(command), &socket_path).is_ok() in crosvm_client_balloon_vms()
264 let request = VmRequest::DiskCommand { in crosvm_client_resize_disk()
332 let request = &VmRequest::BalloonCommand(BalloonControlCommand::Stats {}); in crosvm_client_balloon_stats()
/external/crosvm/vm_control/src/
Dclient.rs86 pub fn vms_request(request: &VmRequest, socket_path: &Path) -> VmsRequestResult { in vms_request() argument
112 let request = VmRequest::UsbCommand(UsbControlCommand::AttachDevice { in do_usb_attach()
128 let request = VmRequest::UsbCommand(UsbControlCommand::DetachDevice { port }); in do_usb_detach()
142 let request = VmRequest::UsbCommand(UsbControlCommand::ListDevice { ports }); in do_usb_list()
162 let request = VmRequest::BatCommand(type_, cmd); in do_modify_battery()
184 pub fn handle_request(request: &VmRequest, socket_path: &Path) -> HandleRequestResult { in handle_request() argument
Dlib.rs901 pub enum VmRequest { enum
972 impl VmRequest { implementation
987 VmRequest::Exit => { in execute()
991 VmRequest::Suspend => { in execute()
995 VmRequest::Resume => { in execute()
999 VmRequest::BalloonCommand(BalloonControlCommand::Adjust { num_bytes }) => { in execute()
1005 VmRequest::BalloonCommand(BalloonControlCommand::Stats) => { in execute()
1023 VmRequest::DiskCommand { in execute()
1046 VmRequest::UsbCommand(ref cmd) => { in execute()
1060 VmRequest::BatCommand(type_, ref cmd) => { in execute()
/external/crosvm/src/
Dgdb.rs13 VcpuControl, VcpuDebug, VcpuDebugStatus, VcpuDebugStatusMessage, VmRequest, VmResponse,
65 if let Err(e) = gdbstub.vm_request(VmRequest::Resume) { in gdb_thread()
84 VmRequest(TubeError), enumerator
123 fn vm_request(&self, request: VmRequest) -> GdbResult<()> { in vm_request()
125 vm_tube.send(&request).map_err(Error::VmRequest)?; in vm_request()
171 self.vm_request(VmRequest::Resume).map_err(|e| { in resume()
198 self.vm_request(VmRequest::Suspend).map_err(|e| { in resume()
Dmain.rs42 BalloonControlCommand, BatteryType, DiskControlCommand, UsbControlResult, VmRequest,
2026 vms_request(&VmRequest::Exit, socket_path) in stop_vms()
2037 vms_request(&VmRequest::Suspend, socket_path) in suspend_vms()
2048 vms_request(&VmRequest::Resume, socket_path) in resume_vms()
2068 vms_request(&VmRequest::BalloonCommand(command), socket_path) in balloon_vms()
2078 let request = &VmRequest::BalloonCommand(command); in balloon_stats()
2193 VmRequest::DiskCommand { in disk_cmd()
Dlinux.rs3034 TaggedControlTube::Vm(tube) => match tube.recv::<VmRequest>() { in run_control()