VirtualBox

Changeset 7628 in vbox for trunk/src


Ignore:
Timestamp:
Mar 28, 2008 1:51:20 PM (17 years ago)
Author:
vboxsync
Message:

Assert some one problematic VMR3ReqCall* RTGC* stuff. (fix when they trigger)

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

Legend:

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

    r5999 r7628  
    5959/* Enable to monitor all scanned pages
    6060#define CSAM_MONITOR_CSAM_CODE_PAGES */
    61 /* Enable to scan beyond ret instructions. 
     61/* Enable to scan beyond ret instructions.
    6262#define CSAM_ANALYSE_BEYOND_RET */
    6363
     
    173173    STAM_REG(pVM, &pVM->csam.s.StatCheckGates,       STAMTYPE_PROFILE, "/PROF/CSAM/CheckGates",       STAMUNIT_TICKS_PER_CALL, "CSAMR3CheckGates overhead.");
    174174
    175     /* 
     175    /*
    176176     * Check CFGM option and enable/disable CSAM.
    177177     */
     
    11951195        {
    11961196            /* We need to parse 'call dword ptr [address]' type of calls to catch cpuid instructions in some recent Linux distributions (e.g. OpenSuse 10.3) */
    1197             if (    cpu.pCurInstr->opcode == OP_CALL 
     1197            if (    cpu.pCurInstr->opcode == OP_CALL
    11981198                &&  cpu.param1.flags == USE_DISPLACEMENT32)
    11991199            {
     
    19221922         */
    19231923        Log(("CSAMCodePageWriteHandler: delayed write!\n"));
     1924        AssertCompileSize(RTGCPTR, 4);
    19241925        rc = VMR3ReqCallEx(pVM, NULL, 0, VMREQFLAGS_NO_WAIT | VMREQFLAGS_VOID,
    19251926                           (PFNRT)CSAMDelayedWriteHandler, 3, pVM, GCPtr, cbBuf);
     
    23572358                continue;
    23582359            }
    2359            
     2360
    23602361
    23612362            if (pGuestIdte->Gen.u5Type2 == VBOX_IDTE_TYPE2_TRAP_32)
  • trunk/src/VBox/VMM/PDMDevice.cpp

    r7523 r7628  
    31583158        Log(("pdmR3DevHlp_PhysRead: caller='%s'/%d: Requesting call in EMT...\n", pDevIns->pDevReg->szDeviceName, pDevIns->iInstance));
    31593159        PVMREQ pReq;
     3160        AssertCompileSize(RTGCPHYS, 4);
    31603161        int rc = VMR3ReqCallVoid(pDevIns->Internal.s.pVMHC, &pReq, RT_INDEFINITE_WAIT,
    31613162                                 (PFNRT)PGMPhysRead, 4, pDevIns->Internal.s.pVMHC, GCPhys, pvBuf, cbRead);
     
    31903191        Log(("pdmR3DevHlp_PhysWrite: caller='%s'/%d: Requesting call in EMT...\n", pDevIns->pDevReg->szDeviceName, pDevIns->iInstance));
    31913192        PVMREQ pReq;
     3193        AssertCompileSize(RTGCPHYS, 4);
    31923194        int rc = VMR3ReqCallVoid(pDevIns->Internal.s.pVMHC, &pReq, RT_INDEFINITE_WAIT,
    31933195                                 (PFNRT)PGMPhysWrite, 4, pDevIns->Internal.s.pVMHC, GCPhys, pvBuf, cbWrite);
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