- Timestamp:
- Apr 22, 2019 9:04:39 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r78240 r78241 4805 4805 4806 4806 /* Commit the CR0 and related fields to the guest VMCS. */ 4807 int rc = VMXWriteVmcs GstN(VMX_VMCS_GUEST_CR0, u64GuestCr0);4807 int rc = VMXWriteVmcs32(VMX_VMCS_GUEST_CR0, u64GuestCr0); /** @todo Fix to 64-bit when we drop 32-bit. */ 4808 4808 rc |= VMXWriteVmcsHstN(VMX_VMCS_CTRL_CR0_READ_SHADOW, u64ShadowCr0); 4809 4809 if (uProcCtls != pVmcsInfo->u32ProcCtls) … … 4834 4834 4835 4835 /* Commit the CR0 and CR0 read shadow to the nested-guest VMCS. */ 4836 int rc = VMXWriteVmcs GstN(VMX_VMCS_GUEST_CR0, u64GuestCr0);4836 int rc = VMXWriteVmcs32(VMX_VMCS_GUEST_CR0, u64GuestCr0); /** @todo NSTVMX: Fix to 64-bit when we drop 32-bit. */ 4837 4837 rc |= VMXWriteVmcsHstN(VMX_VMCS_CTRL_CR0_READ_SHADOW, u64ShadowCr0); 4838 4838 AssertRCReturn(rc, rc); … … 5062 5062 5063 5063 /* Commit the CR4 and CR4 read shadow to the guest VMCS. */ 5064 rc = VMXWriteVmcs GstN(VMX_VMCS_GUEST_CR4, u64GuestCr4);5064 rc = VMXWriteVmcs32(VMX_VMCS_GUEST_CR4, u64GuestCr4); /** @todo Fix to 64-bit when we drop 32-bit. */ 5065 5065 rc |= VMXWriteVmcsHstN(VMX_VMCS_CTRL_CR4_READ_SHADOW, u64ShadowCr4); 5066 5066 AssertRCReturn(rc, rc); … … 6440 6440 { 6441 6441 AssertMsgFailed(("VMXWriteVmcs64Ex: Invalid field %#RX32 (pVCpu=%p u64Val=%#RX64)\n", idxField, pVCpu, u64Val)); 6442 pVCpu->hm.s.u32HMError = idxField; 6442 6443 rc = VERR_INVALID_PARAMETER; 6443 6444 break;
Note:
See TracChangeset
for help on using the changeset viewer.