Changeset 47802 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Aug 16, 2013 11:27:27 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 88063
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMR0.cpp
r47773 r47802 1408 1408 AssertPtr(pCpu); 1409 1409 1410 pVCpu->hm.s.idEnteredCpu = idCpu;1411 1412 /* Reload the host context and the guest's CR0 register for the FPU bits. */1413 pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_GUEST_CR0 | HM_CHANGED_HOST_CONTEXT;1414 1415 1410 /* Enable VT-x or AMD-V if local init is required, or enable if it's a freshly onlined CPU. */ 1416 1411 if ( !pCpu->fConfigured … … 1419 1414 hmR0EnableCpu(pVCpu->CTX_SUFF(pVM), idCpu); 1420 1415 } 1416 1417 /* Reload host-context (back from ring-3/migrated CPUs), reload guest CR0 (for FPU bits). */ 1418 pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_HOST_CONTEXT | HM_CHANGED_GUEST_CR0; 1419 pVCpu->hm.s.idEnteredCpu = idCpu; 1421 1420 } 1422 1421 … … 1451 1450 Assert(pCpu); 1452 1451 Assert(pCtx); 1452 Assert(pVCpu->hm.s.fContextUseFlags & (HM_CHANGED_HOST_CONTEXT | HM_CHANGED_GUEST_CR0)); 1453 1453 1454 1454 int rc = g_HvmR0.pfnEnterSession(pVM, pVCpu, pCpu); -
trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp
r47771 r47802 1618 1618 initializing AMD-V if necessary (onlined CPUs, local init etc.) */ 1619 1619 HMR0EnterEx(pVCpu); 1620 1621 pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_HOST_CONTEXT; 1620 Assert(pVCpu->hm.s.fContextUseFlags & (HM_CHANGED_HOST_CONTEXT | HM_CHANGED_GUEST_CR0)); 1622 1621 1623 1622 RTThreadPreemptRestore(&PreemptState); -
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r47776 r47802 6844 6844 initializing VT-x if necessary (onlined CPUs, local init etc.) */ 6845 6845 HMR0EnterEx(pVCpu); 6846 Assert(pVCpu->hm.s.fContextUseFlags & (HM_CHANGED_HOST_CONTEXT | HM_CHANGED_GUEST_CR0)); 6846 6847 6847 6848 /* Load the active VMCS as the current one. */ … … 6851 6852 pVCpu->hm.s.fResumeVM = false; 6852 6853 pVCpu->hm.s.fLeaveDone = false; 6853 pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_HOST_CONTEXT;6854 6854 6855 6855 /* Restore preemption, migrating to another CPU should be fine now. */
Note:
See TracChangeset
for help on using the changeset viewer.