VirtualBox

Changeset 25389 in vbox


Ignore:
Timestamp:
Dec 15, 2009 10:55:31 AM (15 years ago)
Author:
vboxsync
Message:

More unrestricted guest execution changes

File:
1 edited

Legend:

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

    r25386 r25389  
    15581558        }
    15591559        /* Note: protected mode & paging are always enabled; we use them for emulating real and protected mode without paging too. */
    1560         val |= X86_CR0_PE | X86_CR0_PG;
     1560        if (!pVM->hwaccm.s.vmx.fUnrestrictedGuest)
     1561            val |= X86_CR0_PE | X86_CR0_PG;
     1562
    15611563        if (pVM->hwaccm.s.fNestedPaging)
    15621564        {
     
    16431645        }
    16441646        else
    1645         if (!CPUMIsGuestInPagedProtectedModeEx(pCtx))
     1647        if (    !CPUMIsGuestInPagedProtectedModeEx(pCtx)
     1648            &&  !pVM->hwaccm.s.vmx.fUnrestrictedGuest)
    16461649        {
    16471650            /* We use 4 MB pages in our identity mapping page table for real and protected mode without paging. */
     
    16911694            AssertRC(rc);
    16921695
    1693             if (!CPUMIsGuestInPagedProtectedModeEx(pCtx))
     1696            if (    !CPUMIsGuestInPagedProtectedModeEx(pCtx)
     1697                &&  !pVM->hwaccm.s.vmx.fUnrestrictedGuest)
    16941698            {
    16951699                RTGCPHYS GCPhys;
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