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:
Samuel Ortiz
2019-09-30 11:53:49 +02:00
parent ce0b475ef7
commit 46cde1a38e
4 changed files with 28 additions and 28 deletions
+2 -2
View File
@@ -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));