/* FIXME: TODO: we have to periodically input GUESTOS_NOISE to the system? how ? */
action_ = sub_cpu->execution_start(0);
+ /* Initialize the VM parameters */
+ params_.ramsize = 0;
+
XBT_VERB("Create VM(%s)@PM(%s) with %ld mounted disks", piface->name().c_str(), hostPM_->name().c_str(),
xbt_dynar_length(storage_));
}
/* Free the cpu_action of the VM. */
XBT_ATTRIB_UNUSED int ret = action_->unref();
xbt_assert(ret == 1, "Bug: some resource still remains");
+
+ delete piface_->pimpl_cpu;
}
e_surf_vm_state_t VirtualMachineImpl::getState()
{
action_->setBound(bound);
}
+
+void VirtualMachineImpl::getParams(vm_params_t params)
+{
+ *params = params_;
+}
+
+void VirtualMachineImpl::setParams(vm_params_t params)
+{
+ /* may check something here. */
+ params_ = *params;
+}
}
}