1 /* Copyright (c) 2013-2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
9 #include "host_clm03.hpp"
10 #include "virtual_machine.hpp"
15 #define GUESTOS_NOISE 100 // This value corresponds to the cost of the global action associated to the VM
16 // It corresponds to the cost of a VM running no tasks.
25 class XBT_PRIVATE VMHL13Model;
26 class XBT_PRIVATE VMHL13;
31 class VMHL13Model : public VMModel {
36 VirtualMachine *createVM(const char *name, sg_host_t host_PM) override;
37 double shareResources(double now) override;
38 void adjustWeightOfDummyCpuActions() override {};
39 void updateActionsState(double /*now*/, double /*delta*/) override;
46 class VMHL13 : public VirtualMachine {
48 VMHL13(VMModel *model, const char* name, xbt_dict_t props, sg_host_t host_PM);
51 void suspend() override;
52 void resume() override;
55 void restore() override;
57 void migrate(sg_host_t ind_dst_pm) override;
59 void setBound(double bound) override;
60 void setAffinity(Cpu *cpu, unsigned long mask) override;
70 #endif /* SURF_VM_HPP_ */