Public Member Functions | |
virtual | ~vcpu_manager ()=default |
virtual void | create_vcpu (vcpuid::type vcpuid, user_data *data=nullptr) |
virtual void | delete_vcpu (vcpuid::type vcpuid, user_data *data=nullptr) |
virtual void | run_vcpu (vcpuid::type vcpuid, user_data *data=nullptr) |
virtual void | hlt_vcpu (vcpuid::type vcpuid, user_data *data=nullptr) |
virtual void | write (vcpuid::type vcpuid, const std::string &str) noexcept |
vcpu_manager (const vcpu_manager &)=delete | |
vcpu_manager & | operator= (const vcpu_manager &)=delete |
Static Public Member Functions | |
static vcpu_manager * | instance () noexcept |
vCPU Manager
The vCPU manager is responsible for creating / destroying vCPUs, and calling a vCPU's interface, depending on which vcpuid is provided. If you need to work with a vCPU, but all you have is a vcpuid, this is the class to use.
Definition at line 39 of file vcpu_manager.h.
|
virtualdefault |
Destructor
|
delete |
|
staticnoexcept |
Get Singleton Instance
Get an instance to the singleton class.
Definition at line 37 of file vcpu_manager.cpp.
|
virtual |
Create vCPU
Creates the vCPU. Note that the vCPU is actually created by the vCPU factory's make_vcpu function.
vcpuid | the vcpu to initialize |
data | user data that can be passed around as needed by extensions of Bareflank |
Definition at line 44 of file vcpu_manager.cpp.
|
virtual |
Delete vCPU
Deletes the vCPU.
vcpuid | the vcpu to stop |
data | user data that can be passed around as needed by extensions of Bareflank |
Definition at line 57 of file vcpu_manager.cpp.
|
virtual |
Run vCPU
Executes the vCPU.
vcpuid | the vcpu to execute |
data | user data that can be passed around as needed by extensions of Bareflank |
Definition at line 70 of file vcpu_manager.cpp.
|
virtual |
Halt vCPU
Halts the vCPU.
vcpuid | the vcpu to halt |
data | user data that can be passed around as needed by extensions of Bareflank |
Definition at line 77 of file vcpu_manager.cpp.
|
virtualnoexcept |
Write to Log
Write's a string the vCPU's debug ring.
vcpuid | the vCPU to write to |
str | the string to write |
Definition at line 84 of file vcpu_manager.cpp.
|
delete |