mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-24 09:29:16 +00:00
hv: vcpu: Move vcpu_set_state to common scope
Movement only. Tracked-On: #8830 Signed-off-by: Yifan Liu <yifan1.liu@intel.com> Acked-by: Wang Yu1 <yu1.wang@intel.com>
This commit is contained in:
@@ -87,6 +87,16 @@ struct guest_mem_dump {
|
||||
uint64_t len;
|
||||
};
|
||||
|
||||
/*
|
||||
* @brief Update the state of vCPU and state of vlapic
|
||||
*
|
||||
* The vlapic state of VM shall be updated for some vCPU
|
||||
* state update cases, such as from VCPU_INIT to VCPU_RUNNING.
|
||||
|
||||
* @pre (vcpu != NULL)
|
||||
*/
|
||||
void vcpu_set_state(struct acrn_vcpu *vcpu, enum vcpu_state new_state);
|
||||
|
||||
uint16_t pcpuid_from_vcpu(const struct acrn_vcpu *vcpu);
|
||||
int32_t arch_init_vcpu(struct acrn_vcpu *vcpu);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user