22 #ifndef VCPU_MANAGER_H 23 #define VCPU_MANAGER_H 131 std::map<vcpuid::type, std::unique_ptr<vcpu>> m_vcpus;
135 std::unique_ptr<vcpu_factory> m_vcpu_factory;
137 void set_factory(std::unique_ptr<vcpu_factory> factory)
138 { m_vcpu_factory = std::move(factory); }
155 #define g_vcm vcpu_manager::instance()
virtual void run_vcpu(vcpuid::type vcpuid, user_data *data=nullptr)
virtual ~vcpu_manager()=default
int64_t unsigned long void * data
vcpu_manager & operator=(const vcpu_manager &)=delete
virtual void create_vcpu(vcpuid::type vcpuid, user_data *data=nullptr)
void uint64_t uint64_t uint64_t *rdx noexcept
constexpr const auto string
virtual void write(vcpuid::type vcpuid, const std::string &str) noexcept
virtual void hlt_vcpu(vcpuid::type vcpuid, user_data *data=nullptr)
virtual void delete_vcpu(vcpuid::type vcpuid, user_data *data=nullptr)
static vcpu_manager * instance() noexcept