Skip to content

Commit 457ac74

Browse files
JasonChenCJlijinxia
authored andcommitted
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>
1 parent 2978c01 commit 457ac74

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

hypervisor/arch/x86/guest/vcpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ static void set_vcpu_mode(struct vcpu *vcpu, uint32_t cs_attr)
273273
}
274274
}
275275

276-
int start_vcpu(struct vcpu *vcpu)
276+
int run_vcpu(struct vcpu *vcpu)
277277
{
278278
uint32_t instlen;
279279
uint64_t rip;

hypervisor/common/hv_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void vcpu_thread(struct vcpu *vcpu)
7474
vcpu->msr_tsc_aux_guest);
7575
}
7676

77-
ret = start_vcpu(vcpu);
77+
ret = run_vcpu(vcpu);
7878
if (ret != 0) {
7979
pr_fatal("vcpu resume failed");
8080
pause_vcpu(vcpu, VCPU_ZOMBIE);

hypervisor/include/arch/x86/guest/vcpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ void vcpu_set_pat_ext(struct vcpu *vcpu, uint64_t val);
283283

284284
struct vcpu* get_ever_run_vcpu(uint16_t pcpu_id);
285285
int create_vcpu(uint16_t pcpu_id, struct vm *vm, struct vcpu **rtn_vcpu_handle);
286-
int start_vcpu(struct vcpu *vcpu);
286+
int run_vcpu(struct vcpu *vcpu);
287287
int shutdown_vcpu(struct vcpu *vcpu);
288288
void destroy_vcpu(struct vcpu *vcpu);
289289

0 commit comments

Comments
 (0)