VirtualBox

Changeset 7718 in vbox for trunk/src


Ignore:
Timestamp:
Apr 3, 2008 11:26:16 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29250
Message:

Enabled X86_CR0_WP=0 code execution with VT-x & AMD-V

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/HWACCM.cpp

    r7502 r7718  
    405405                pVM->hwaccm.s.vmx.fEnabled = true;
    406406                CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_SEP);
     407#if 0 /* not yet */
     408                CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_PAE);
     409#endif
    407410                LogRel(("HWACCM: VMX enabled!\n"));
    408411            }
     
    436439                hwaccmr3DisableRawMode(pVM);
    437440                CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_SEP);
     441#if 0 /* not yet */
     442                CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_PAE);
     443#endif
    438444
    439445                pVM->fHWACCMEnabled = true;
     
    569575        return false;
    570576    if (pCtx->ssHid.Attr.n.u1Present == 0)
    571         return false;
    572 
    573     /** @todo if we remove this check, then Windows XP install fails during the textmode phase */
    574     if (!(pCtx->cr0 & X86_CR0_WRITE_PROTECT))
    575577        return false;
    576578#endif
  • trunk/src/VBox/VMM/VMMAll/EMAll.cpp

    r7469 r7718  
    16591659        case USE_REG_CR0:
    16601660            oldval = CPUMGetGuestCR0(pVM);
    1661 #ifndef IN_RING3
     1661#ifdef IN_GC
    16621662            /* CR0.WP and CR0.AM changes require a reschedule run in ring 3. */
    16631663            if (    (val32 & (X86_CR0_WP | X86_CR0_AM))
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r7715 r7718  
    539539                    return rc;
    540540                }
     541                else
     542                    AssertFailed(); /* This shouldn't happen; the above check is paranoid. */
    541543            }
    542544
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