vmm: Add a VM config getter

We will need it from the VMM thread, when trying to reboot a VM.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz 2019-09-25 11:26:11 +02:00
parent 47167a658e
commit feb1c33084

View File

@ -1061,6 +1061,11 @@ impl Vm {
Ok(())
}
/// Gets a thread-safe reference counted pointer to the VM configuration.
pub fn get_config(&self) -> Arc<VmConfig> {
Arc::clone(&self.config)
}
}
#[allow(unused)]