Changeset 46469 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jun 10, 2013 2:53:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r46464 r46469 825 825 goto cleanup; 826 826 strcpy((char *)pVM->hm.s.vmx.pbScratch, "SCRATCH Magic"); 827 *(uint64_t *)(pVM->hm.s.vmx.pbScratch + 16) = UINT64_C(0x DEADBEEFDEADBEEF);827 *(uint64_t *)(pVM->hm.s.vmx.pbScratch + 16) = UINT64_C(0xdeadbeefdeadbeef); 828 828 #endif 829 829 … … 3688 3688 rc = VMXWriteVmcsGstN(VMX_VMCS_GUEST_GDTR_BASE, pMixedCtx->gdtr.pGdt); AssertRCReturn(rc, rc); 3689 3689 3690 Assert(!(pMixedCtx->gdtr.cbGdt & UINT64_C(0xffff0000)));/* Bits 31:16 MBZ. */3690 Assert(!(pMixedCtx->gdtr.cbGdt & 0xffff0000)); /* Bits 31:16 MBZ. */ 3691 3691 Log4(("Load: VMX_VMCS_GUEST_GDTR_BASE=%#RX64\n", pMixedCtx->gdtr.pGdt)); 3692 3692 pVCpu->hm.s.fContextUseFlags &= ~HM_CHANGED_GUEST_GDTR; … … 3737 3737 rc = VMXWriteVmcsGstN(VMX_VMCS_GUEST_IDTR_BASE, pMixedCtx->idtr.pIdt); AssertRCReturn(rc, rc); 3738 3738 3739 Assert(!(pMixedCtx->idtr.cbIdt & UINT64_C(0xffff0000)));/* Bits 31:16 MBZ. */3739 Assert(!(pMixedCtx->idtr.cbIdt & 0xffff0000)); /* Bits 31:16 MBZ. */ 3740 3740 Log4(("Load: VMX_VMCS_GUEST_IDTR_BASE=%#RX64\n", pMixedCtx->idtr.pIdt)); 3741 3741 pVCpu->hm.s.fContextUseFlags &= ~HM_CHANGED_GUEST_IDTR; … … 8316 8316 8317 8317 /* Paranoia. */ 8318 pMixedCtx->dr[7] &= UINT64_C(0xffffffff);/* Upper 32 bits MBZ. */8318 pMixedCtx->dr[7] &= 0xffffffff; /* Upper 32 bits MBZ. */ 8319 8319 pMixedCtx->dr[7] &= ~(RT_BIT(11) | RT_BIT(12) | RT_BIT(14) | RT_BIT(15)); /* MBZ. */ 8320 8320 pMixedCtx->dr[7] |= 0x400; /* MB1. */ … … 8782 8782 8783 8783 /* Paranoia. */ 8784 pMixedCtx->dr[7] &= UINT64_C(0xffffffff); /* upper 32 bits MBZ. */8785 pMixedCtx->dr[7] &= ~(RT_BIT(11) | RT_BIT(12) | RT_BIT(14) | RT_BIT(15)); /* must be zero*/8786 pMixedCtx->dr[7] |= 0x400; /* must be one*/8784 pMixedCtx->dr[7] &= 0xffffffff; /* Upper 32 bits MBZ. */ 8785 pMixedCtx->dr[7] &= ~(RT_BIT(11) | RT_BIT(12) | RT_BIT(14) | RT_BIT(15)); /* MBZ. */ 8786 pMixedCtx->dr[7] |= 0x400; /* MB1. */ 8787 8787 8788 8788 rc |= VMXWriteVmcs32(VMX_VMCS_GUEST_DR7, (uint32_t)pMixedCtx->dr[7]);
Note:
See TracChangeset
for help on using the changeset viewer.