mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +00:00
hv: schedule: schedule to idel after SOS resume form S3
After "commit f0e1c5e
init vcpu host stack when reset vcpu", SOS resume form S3
wants to schedule to vcpu_thread not the point where SOS enter S3. So we should
schedule to idel first then reschedule to execute vcpu_thread.
Tracked-On: #3387
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -604,16 +604,16 @@ void set_vcpu_regs(struct acrn_vcpu *vcpu, struct acrn_vcpu_regs *vcpu_regs);
|
||||
void reset_vcpu_regs(struct acrn_vcpu *vcpu);
|
||||
|
||||
/**
|
||||
* @brief set the vcpu AP entry
|
||||
* @brief set the vCPU startup entry
|
||||
*
|
||||
* Set target vCPU's AP running entry in run_context.
|
||||
* Set target vCPU's startup entry in run_context.
|
||||
*
|
||||
* @param[inout] vcpu pointer to vcpu data structure
|
||||
* @param[in] entry the entry value for AP
|
||||
* @param[inout] vcpu pointer to vCPU data structure
|
||||
* @param[in] entry startup entry for the vCPU
|
||||
*
|
||||
* @return None
|
||||
*/
|
||||
void set_ap_entry(struct acrn_vcpu *vcpu, uint64_t entry);
|
||||
void set_vcpu_startup_entry(struct acrn_vcpu *vcpu, uint64_t entry);
|
||||
|
||||
static inline bool is_long_mode(struct acrn_vcpu *vcpu)
|
||||
{
|
||||
|
Reference in New Issue
Block a user