Changeset 48476 in vbox
- Timestamp:
- Sep 13, 2013 2:39:50 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 88937
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r48474 r48476 141 141 * 142 142 * We need to intercept all exceptions manually (except #PF). #NM is also 143 * handled separately, see hmR0VmxLoad GuestControlRegs(). #PF need not be144 * interceptedeven in real-mode if we have Nested Paging support.143 * handled separately, see hmR0VmxLoadSharedCR0(). #PF need not be intercepted 144 * even in real-mode if we have Nested Paging support. 145 145 */ 146 146 #define HMVMX_REAL_MODE_XCPT_MASK ( RT_BIT(X86_XCPT_DE) | RT_BIT(X86_XCPT_DB) | RT_BIT(X86_XCPT_NMI) \ … … 1925 1925 /* All fields are zero-initialized during allocation; but don't remove the commented block below. */ 1926 1926 #if 0 1927 /* All CR3 accesses cause VM-exits. Later we optimize CR3 accesses (see hmR0VmxLoadGuestC ontrolRegs())*/1927 /* All CR3 accesses cause VM-exits. Later we optimize CR3 accesses (see hmR0VmxLoadGuestCR3AndCR4())*/ 1928 1928 rc = VMXWriteVmcs32(VMX_VMCS32_CTRL_CR3_TARGET_COUNT, 0); AssertRCReturn(rc, rc); 1929 1929 rc = VMXWriteVmcs64(VMX_VMCS64_CTRL_TSC_OFFSET_FULL, 0); AssertRCReturn(rc, rc); … … 10324 10324 HMVMX_VALIDATE_EXIT_XCPT_HANDLER_PARAMS(); 10325 10325 10326 #ifndef HMVMX_ALWAYS_TRAP_ALL_XCPTS10327 Assert(!CPUMIsGuestFPUStateActive(pVCpu));10328 #endif10329 10330 10326 /* We require CR0 and EFER. EFER is always up-to-date. */ 10331 10327 int rc = hmR0VmxSaveGuestCR0(pVCpu, pMixedCtx); … … 10334 10330 /* We're playing with the host CPU state here, have to disable preemption. */ 10335 10331 HM_DISABLE_PREEMPT_IF_NEEDED(); 10332 10333 #ifndef HMVMX_ALWAYS_TRAP_ALL_XCPTS 10334 if (!pVCpu->hm.s.vmx.RealMode.fRealOnV86Active) 10335 Assert(!CPUMIsGuestFPUStateActive(pVCpu)); 10336 #endif 10336 10337 10337 10338 /* Lazy FPU loading; load the guest-FPU state transparently and continue execution of the guest. */
Note:
See TracChangeset
for help on using the changeset viewer.