mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 06:29:19 +00:00
HV: Fix wrong log message in init_host_state
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>
This commit is contained in:
parent
31ebd98797
commit
8afbe66fe9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user