VirtualBox

Changeset 30263 in vbox for trunk/src/VBox/VMM/VMMGC


Ignore:
Timestamp:
Jun 16, 2010 6:31:42 PM (15 years ago)
Author:
vboxsync
Message:

VMM,REM: Only invalidate hidden registers when using raw-mode. Fixes save restore during mode switching code like the windows boot menu. (#5057)

Location:
trunk/src/VBox/VMM/VMMGC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMGC/TRPMGC.cpp

    r28800 r30263  
    175175     */
    176176    RTGCPTR PC;
    177     int rc = SELMValidateAndConvertCSAddr(pVM, pRegFrame->eflags, pRegFrame->ss, pRegFrame->cs, &pRegFrame->csHid, (RTGCPTR)pRegFrame->eip, &PC);
     177    int rc = SELMValidateAndConvertCSAddr(pVM, pRegFrame->eflags, pRegFrame->ss, pRegFrame->cs, &pRegFrame->csHid,
     178                                          (RTGCPTR)pRegFrame->eip, &PC);
    178179    if (rc == VINF_SUCCESS)
    179180    {
  • trunk/src/VBox/VMM/VMMGC/TRPMGCHandlers.cpp

    r30160 r30263  
    380380         */
    381381        RTGCPTR PC;
    382         rc = SELMValidateAndConvertCSAddr(pVM, pRegFrame->eflags, pRegFrame->ss, pRegFrame->cs, &pRegFrame->csHid, (RTGCPTR)pRegFrame->eip, &PC);
     382        rc = SELMValidateAndConvertCSAddr(pVM, pRegFrame->eflags, pRegFrame->ss, pRegFrame->cs, &pRegFrame->csHid,
     383                                          (RTGCPTR)pRegFrame->eip, &PC);
    383384        if (RT_FAILURE(rc))
    384385        {
     
    507508     */
    508509    RTGCPTR GCPtr;
    509     if (SELMValidateAndConvertCSAddr(pVM, pRegFrame->eflags, pRegFrame->ss, pRegFrame->cs, &pRegFrame->csHid, (RTGCPTR)pRegFrame->eip, &GCPtr) == VINF_SUCCESS)
     510    if (   SELMValidateAndConvertCSAddr(pVM, pRegFrame->eflags, pRegFrame->ss, pRegFrame->cs, &pRegFrame->csHid,
     511                                        (RTGCPTR)pRegFrame->eip, &GCPtr)
     512        == VINF_SUCCESS)
    510513    {
    511514        uint8_t *pu8Code = (uint8_t *)(uintptr_t)GCPtr;
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