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>
This commit is contained in:
Kaige Fu 2018-08-31 00:27:38 +08:00 committed by lijinxia
parent 96dba0d8fe
commit f611012d28
2 changed files with 2 additions and 2 deletions

View File

@ -2240,7 +2240,7 @@ int decode_instruction(struct vcpu *vcpu)
retval = vie_init(&emul_ctxt->vie, vcpu);
if (retval < 0) {
if (retval != -EFAULT) {
pr_err("decode instruction failed @ 0x%016llx:",
pr_err("init vie failed @ 0x%016llx:",
vcpu_get_rip(vcpu));
}
return retval;

View File

@ -182,7 +182,7 @@ int create_vcpu(uint16_t pcpu_id, struct vm *vm, struct vcpu **rtn_vcpu_handle)
ASSERT(vm != NULL, "");
ASSERT(rtn_vcpu_handle != NULL, "");
pr_info("Creating VCPU %hu", pcpu_id);
pr_info("Creating VCPU working on PCPU%hu", pcpu_id);
/* Allocate memory for VCPU */
vcpu = calloc(1U, sizeof(struct vcpu));