VirtualBox

Changeset 1229 in vbox for trunk


Ignore:
Timestamp:
Mar 5, 2007 4:09:05 PM (18 years ago)
Author:
vboxsync
Message:

explicitly disable interrupts when executing the non-fast ioctls (only important for VBOX_WITHOUT_IDT_PATCHING).

File:
1 edited

Legend:

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

    r1227 r1229  
    536536         */
    537537        case VMMR0_DO_VMMR0_INIT:
    538             return VMMR0Init(pVM, (unsigned)(uintptr_t)pvArg);
     538        {
     539            RTCCUINTREG fFlags = ASMIntDisableFlags();
     540            int rc = VMMR0Init(pVM, (unsigned)(uintptr_t)pvArg);
     541            ASMSetFlags(fFlags);
     542            return rc;
     543        }
    539544
    540545        /*
     
    542547         */
    543548        case VMMR0_DO_VMMR0_TERM:
    544             return VMMR0Term(pVM);
     549        {
     550            RTCCUINTREG fFlags = ASMIntDisableFlags();
     551            int rc = VMMR0Term(pVM);
     552            ASMSetFlags(fFlags);
     553            return rc;
     554        }
    545555
    546556        /*
     
    548558         */
    549559        case VMMR0_DO_HWACC_SETUP_VM:
    550             return HWACCMR0SetupVMX(pVM);
     560        {
     561            RTCCUINTREG fFlags = ASMIntDisableFlags();
     562            int rc = HWACCMR0SetupVMX(pVM);
     563            ASMSetFlags(fFlags);
     564            return rc;
     565        }
    551566
    552567        /*
     
    560575                return VERR_NOT_SUPPORTED;
    561576
     577            RTCCUINTREG fFlags = ASMIntDisableFlags();
    562578            int rc = pVM->vmm.s.pfnR0HostToGuest(pVM);
     579            ASMSetFlags(fFlags);
    563580            return rc;
    564581        }
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