From feb1c33084c0d88853140a30de6bd47ad3f9ab3e Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Wed, 25 Sep 2019 11:26:11 +0200 Subject: [PATCH] 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 --- vmm/src/vm.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vmm/src/vm.rs b/vmm/src/vm.rs index cf7027903..52eed9b70 100755 --- a/vmm/src/vm.rs +++ b/vmm/src/vm.rs @@ -1061,6 +1061,11 @@ impl Vm { Ok(()) } + + /// Gets a thread-safe reference counted pointer to the VM configuration. + pub fn get_config(&self) -> Arc { + Arc::clone(&self.config) + } } #[allow(unused)]