mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Rename the VM start and stop operations to boot and shutdown
To match the OpenAPI description. And also to map the real life terminology. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
+2
-2
@@ -753,7 +753,7 @@ impl Vm {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn stop(&mut self) -> Result<()> {
|
||||
pub fn shutdown(&mut self) -> Result<()> {
|
||||
if self.on_tty {
|
||||
// Don't forget to set the terminal in canonical mode
|
||||
// before to exit.
|
||||
@@ -798,7 +798,7 @@ impl Vm {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn start(&mut self) -> Result<()> {
|
||||
pub fn boot(&mut self) -> Result<()> {
|
||||
let entry_addr = self.load_kernel()?;
|
||||
let vcpu_count = u8::from(&self.config.cpus);
|
||||
let vcpu_thread_barrier = Arc::new(Barrier::new((vcpu_count + 1) as usize));
|
||||
|
||||
Reference in New Issue
Block a user