mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
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:
parent
47167a658e
commit
feb1c33084
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user