Skip to content

Commit

Permalink
HV: Fix wrong log message in init_host_state
Browse files Browse the repository at this point in the history
There are some cases that we write to VMX_HOST_XXX regs but have debug message
like "pr_dbg("VMX_GUEST_XXX ...")".

Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
  • Loading branch information
KaigeFu authored and lijinxia committed Jul 3, 2018
1 parent 31ebd98 commit 8afbe66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hypervisor/arch/x86/vmx.c
Expand Up @@ -1112,21 +1112,21 @@ static void init_host_state(__unused struct vcpu *vcpu)
value = (uint32_t) value;
field = VMX_HOST_CR0;
exec_vmwrite(field, value);
pr_dbg("VMX_GUEST_CR0: 0x%016llx ", value);
pr_dbg("VMX_HOST_CR0: 0x%016llx ", value);

/* Set up host CR3 field */
CPU_CR_READ(cr3, &value);
value = (uint32_t) value;
field = VMX_HOST_CR3;
exec_vmwrite(field, value);
pr_dbg("VMX_GUEST_CR3: 0x%016llx ", value);
pr_dbg("VMX_HOST_CR3: 0x%016llx ", value);

/* Set up host CR4 field */
CPU_CR_READ(cr4, &value);
value = (uint32_t) value;
field = VMX_HOST_CR4;
exec_vmwrite(field, value);
pr_dbg("VMX_GUEST_CR4: 0x%016llx ", value);
pr_dbg("VMX_HOST_CR4: 0x%016llx ", value);

/* Set up host and guest FS base address */
value = msr_read(MSR_IA32_FS_BASE);
Expand Down

0 comments on commit 8afbe66

Please sign in to comment.