X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8cf6e30af8de6686461b6b1b52ba578df01de985..dfd8237e0cfdac335f6dfe1bf9a6adc868d58dd2:/src/msg/msg_vm.cpp diff --git a/src/msg/msg_vm.cpp b/src/msg/msg_vm.cpp index 873e41a42e..6d1d5c320c 100644 --- a/src/msg/msg_vm.cpp +++ b/src/msg/msg_vm.cpp @@ -45,7 +45,7 @@ void MSG_vm_set_params(msg_vm_t vm, vm_params_t params) /** \ingroup m_vm_management * \brief Get the parameters of a given host * - * \param host a host + * \param vm the vm you are interested into * \param params a prameter object */ void MSG_vm_get_params(msg_vm_t vm, vm_params_t params) @@ -290,11 +290,10 @@ static int migration_rx_fun(int argc, char *argv[]) // This is clearly ugly but I (Adrien) need more time to do something cleaner (actually we should copy the whole ms // structure at the beginning and free it at the end of each function) simgrid::s4u::VirtualMachine* vm = static_cast(ms->vm); - msg_host_t src_pm = ms->src_pm; msg_host_t dst_pm = ms->dst_pm; // Make sure that we cannot get interrupted between the migrate and the resume to not end in an inconsistent state - simgrid::simix::kernelImmediate([vm, src_pm, dst_pm]() { + simgrid::simix::kernelImmediate([vm, dst_pm]() { /* Update the vm location */ /* precopy migration makes the VM temporally paused */ xbt_assert(vm->pimpl_vm_->getState() == SURF_VM_STATE_SUSPENDED);