VirtualBox

Changeset 8984 in vbox for trunk


Ignore:
Timestamp:
May 20, 2008 8:59:45 PM (17 years ago)
Author:
vboxsync
Message:

Removed the dtrace experiment. the invalid lock sequences now ends up as OP_ILLUD2 after disassembly.

File:
1 edited

Legend:

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

    r8830 r8984  
    13761376        return VINF_SUCCESS;
    13771377
    1378 #ifdef DTRACE_EXPERIMENT
    1379     case OP_MOV: /* dtrace changes push ebp; mov ebp, esp; into lock mov ebp, esp */
    1380         if (pCpu->prefix & PREFIX_LOCK)
    1381         {
    1382             Log(("illegal lock sequence -> return here\n"));
    1383             return VINF_SUCCESS;
    1384         }
    1385 #endif
    1386 
    13871378    case OP_STI:
    13881379    case OP_POPF:
     
    15241515        return VINF_SUCCESS;
    15251516
    1526 #ifdef DTRACE_EXPERIMENT
    1527     case OP_MOV: /* dtrace changes push ebp; mov ebp, esp; into lock mov ebp, esp */
    1528         if (pCpu->prefix & PREFIX_LOCK)
    1529         {
    1530             Log(("illegal lock sequence -> return here\n"));
    1531             return VINF_SUCCESS;
    1532         }
    1533 #endif
    1534 
    15351517    case OP_IRET:
    15361518    case OP_SYSEXIT: /* will fault or emulated in GC */
     
    16711653
    16721654    case OP_MOV:
    1673 #ifdef DTRACE_EXPERIMENT
    1674         /* dtrace changes push ebp; mov ebp, esp; into lock mov ebp, esp */
    1675         if (pCpu->prefix & PREFIX_LOCK)
    1676         {
    1677             rc = patmPatchGenIllegalInstr(pVM, pPatch);
    1678             Log(("illegal lock sequence -> return here\n"));
    1679             if (VBOX_SUCCESS(rc))
    1680                 rc = VINF_SUCCESS;  /* exit point by definition */
    1681             break;
    1682         }
    1683 #endif
    16841655        if (pCpu->pCurInstr->optype & OPTYPE_POTENTIALLY_DANGEROUS)
    16851656        {
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