*/
class VirtualMachineImpl : public HostImpl {
public:
- explicit VirtualMachineImpl(s4u::Host* piface, s4u::Host* host);
+ explicit VirtualMachineImpl(s4u::VirtualMachine* piface, s4u::Host* host);
~VirtualMachineImpl();
/** @brief Suspend the VM */
/** @brief Get the physical machine hosting the VM */
s4u::Host* getPm();
+ sg_size_t getRamsize();
+
virtual void setBound(double bound);
void getParams(vm_params_t params);
void setParams(vm_params_t params);
/* The vm object of the lower layer */
- CpuAction* action_ = nullptr;
+ Action* action_ = nullptr;
/* Dirty pages stuff */
int dp_enabled = 0;
public:
e_surf_vm_state_t getState();
void setState(e_surf_vm_state_t state);
- static std::deque<VirtualMachineImpl*> allVms_;
+ static std::deque<s4u::VirtualMachine*> allVms_;
bool isMigrating = false;