hypervisor: Add Vm trait

This VM trait should be implemented by each underlying hypervisor.

Previously created hypervisor object should create the VM based on
already selected hypervisor. This is just the trait definition. For each
of supported hypervisor we need to implement the trait. Later we will
implement this trait for KVM and then Microsoft Hyper-V.

Signed-off-by: Muminul Islam <muislam@microsoft.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Muminul Islam
2020-06-03 12:58:00 -07:00
committed by Samuel Ortiz
parent f9b51a41b5
commit f5afc288d8
3 changed files with 152 additions and 2 deletions

View File

@@ -21,6 +21,9 @@
/// KVM implementation module
pub mod kvm;
/// Vm related module
pub mod vm;
/// CPU related module
mod cpu;