VirtualBox

Changeset 13120 in vbox for trunk/src


Ignore:
Timestamp:
Oct 9, 2008 11:14:16 AM (16 years ago)
Author:
vboxsync
Message:

Fix for EPT & real mode cr3 resync.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r13119 r13120  
    14311431    CPUMSetGuestCR4(pVM, val);
    14321432
    1433     /* Can be updated behind our back in the nested paging case. */
    1434     CPUMSetGuestCR2(pVM, ASMGetCR2());
    1435 
    14361433    /* Note: no reason to sync back the CRx registers. They can't be changed by the guest. */
    14371434    /* Note: only in the nested paging case can CR3 & CR4 be changed by the guest. */
    1438     if (pVM->hwaccm.s.fNestedPaging)
    1439     {
     1435    if (    pVM->hwaccm.s.fNestedPaging
     1436        &&  !CPUMIsGuestInRealModeEx(pCtx))
     1437    {
     1438        /* Can be updated behind our back in the nested paging case. */
     1439        CPUMSetGuestCR2(pVM, ASMGetCR2());
     1440
    14401441        VMXReadVMCS(VMX_VMCS_GUEST_CR3, &val);
    14411442
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette