VirtualBox

Changeset 1503 in vbox for trunk


Ignore:
Timestamp:
Mar 15, 2007 10:19:01 AM (18 years ago)
Author:
vboxsync
Message:

extra checks

File:
1 edited

Legend:

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

    r1502 r1503  
    289289
    290290            /** @todo not sure how the partial case is handled; probably not allowed */
    291             if (offRedirBitmap + sizeof(pVM->selm.s.Tss.redirBitmap) <= pVM->selm.s.cbGuestTss)
     291            if (   offRedirBitmap <= offRange
     292                && offRedirBitmap + sizeof(pVM->selm.s.Tss.redirBitmap) >= offRange + cb
     293                && offRedirBitmap + sizeof(pVM->selm.s.Tss.redirBitmap) <= pVM->selm.s.cbGuestTss)
    292294            {
    293                 /** @todo check if fault was in this range and, if so, only update the changed part. */
     295                Log(("offIoBitmap=%x offRedirBitmap=%x cbTSS=%x\n", pGuestTSS->offIoBitmap, offRedirBitmap, pVM->selm.s.cbGuestTss));
     296                /** @todo only update the changed part. */
    294297                for (uint32_t i=0;i<sizeof(pVM->selm.s.Tss.redirBitmap)/8;i++)
    295298                {
    296299                    rc = MMGCRamRead(pVM, &pVM->selm.s.Tss.redirBitmap[i*8], (uint8_t *)pGuestTSS + offRedirBitmap + i*8, 8);
    297                     AssertRC(rc);
     300                    AssertMsg(rc == VINF_SUCCESS, ("MMGCRamRead %VGv failed with %Vrc\n", (uint8_t *)pGuestTSS + offRedirBitmap + i*8, rc));
    298301                }
    299302                STAM_COUNTER_INC(&pVM->selm.s.StatGCWriteGuestTSSRedir);
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