Skip to content

Commit f611012

Browse files
KaigeFulijinxia
authored andcommitted
HV: Refine two log info about vcpu and instr_emul
We have two same log message in decode_instruction. It's a little bit confusing. So, this patch refine the log message to make it more explicit. BTW, we refine one message in create_vcpu. Tracked-On: #1136 Signed-off-by: Kaige Fu <kaige.fu@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
1 parent 96dba0d commit f611012

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hypervisor/arch/x86/guest/instr_emul.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,7 @@ int decode_instruction(struct vcpu *vcpu)
22402240
retval = vie_init(&emul_ctxt->vie, vcpu);
22412241
if (retval < 0) {
22422242
if (retval != -EFAULT) {
2243-
pr_err("decode instruction failed @ 0x%016llx:",
2243+
pr_err("init vie failed @ 0x%016llx:",
22442244
vcpu_get_rip(vcpu));
22452245
}
22462246
return retval;

hypervisor/arch/x86/guest/vcpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ int create_vcpu(uint16_t pcpu_id, struct vm *vm, struct vcpu **rtn_vcpu_handle)
182182
ASSERT(vm != NULL, "");
183183
ASSERT(rtn_vcpu_handle != NULL, "");
184184

185-
pr_info("Creating VCPU %hu", pcpu_id);
185+
pr_info("Creating VCPU working on PCPU%hu", pcpu_id);
186186

187187
/* Allocate memory for VCPU */
188188
vcpu = calloc(1U, sizeof(struct vcpu));

0 commit comments

Comments
 (0)