vcpu: replace start_vcpu with run_vcpu

run_vcpu should be a more suitable name

Tracked-On: #1199
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Jason Chen CJ 2018-09-07 22:36:12 +08:00 committed by lijinxia
parent 2978c01f45
commit 457ac7408d
3 changed files with 3 additions and 3 deletions

View File

@ -273,7 +273,7 @@ static void set_vcpu_mode(struct vcpu *vcpu, uint32_t cs_attr)
}
}
int start_vcpu(struct vcpu *vcpu)
int run_vcpu(struct vcpu *vcpu)
{
uint32_t instlen;
uint64_t rip;

View File

@ -74,7 +74,7 @@ void vcpu_thread(struct vcpu *vcpu)
vcpu->msr_tsc_aux_guest);
}
ret = start_vcpu(vcpu);
ret = run_vcpu(vcpu);
if (ret != 0) {
pr_fatal("vcpu resume failed");
pause_vcpu(vcpu, VCPU_ZOMBIE);

View File

@ -283,7 +283,7 @@ void vcpu_set_pat_ext(struct vcpu *vcpu, uint64_t val);
struct vcpu* get_ever_run_vcpu(uint16_t pcpu_id);
int create_vcpu(uint16_t pcpu_id, struct vm *vm, struct vcpu **rtn_vcpu_handle);
int start_vcpu(struct vcpu *vcpu);
int run_vcpu(struct vcpu *vcpu);
int shutdown_vcpu(struct vcpu *vcpu);
void destroy_vcpu(struct vcpu *vcpu);