mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-08 12:41:35 +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(())
|
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)]
|
#[allow(unused)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user