Changeset 10716 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Jul 17, 2008 7:31:03 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 33441
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r10667 r10716 911 911 if (pVM->hwaccm.s.fContextUseFlags & HWACCM_CHANGED_GUEST_DEBUG) 912 912 { 913 /** @todo DR0-6 */ 914 val = pCtx->dr7; 913 val = pCtx->dr7 & 0xffffffff; /* upper 32 bits reserved */ 915 914 val &= ~(RT_BIT(11) | RT_BIT(12) | RT_BIT(14) | RT_BIT(15)); /* must be zero */ 916 val |= 0x400; /* must be one */ 917 #ifdef VBOX_STRICT 918 val = 0x400; 919 #endif 915 val |= 0x400; /* must be one */ 920 916 rc |= VMXWriteVMCS(VMX_VMCS_GUEST_DR7, val); 921 917 AssertRC(rc); … … 926 922 AssertRC(rc); 927 923 928 /** @todo */924 /** @todo do we really ever need this? */ 929 925 rc |= VMXWriteVMCS(VMX_VMCS_GUEST_DEBUG_EXCEPTIONS, 0); 930 926 AssertRC(rc); … … 1437 1433 pCtx->eflags.u32 = val; 1438 1434 1439 /* Update the APIC with the cached TPR value.1440 * @todo reduce overhead1441 */1442 if ( pCtx->msrEFER & MSR_K6_EFER_LMA1443 && pVM->hwaccm.s.vmx.pAPIC)1444 {1445 rc = PDMApicSetTPR(pVM, pVM->hwaccm.s.vmx.pAPIC[0x80] >> 4);1446 AssertRC(rc);1447 }1448 1449 1435 /* Take care of instruction fusing (sti, mov ss) */ 1450 1436 rc |= VMXReadVMCS(VMX_VMCS_GUEST_INTERRUPTIBILITY_STATE, &val); … … 1533 1519 if (fSyncTPR) 1534 1520 { 1535 rc = PDMApicSetTPR(pVM, pVM->hwaccm.s.vmx.pAPIC[0x80] );1521 rc = PDMApicSetTPR(pVM, pVM->hwaccm.s.vmx.pAPIC[0x80] >> 4); 1536 1522 AssertRC(rc); 1537 1523 }
Note:
See TracChangeset
for help on using the changeset viewer.