VirtualBox

Changeset 71699 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Apr 6, 2018 10:45:31 AM (7 years ago)
Author:
vboxsync
Message:

SUPDrv,VBoxVMM: Require SSE2 to be present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/VM.cpp

    r71129 r71699  
    579579static int vmR3CreateU(PUVM pUVM, uint32_t cCpus, PFNCFGMCONSTRUCTOR pfnCFGMConstructor, void *pvUserCFGM)
    580580{
     581#if (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)) && !defined(VBOX_WITH_OLD_CPU_SUPPORT)
     582    /*
     583     * Require SSE2 to be present (already checked for in supdrv, so we
     584     * shouldn't ever really get here).
     585     */
     586    if (!(ASMCpuId_EDX(1) & X86_CPUID_FEATURE_EDX_SSE2))
     587    {
     588        LogRel(("vboxdrv: Requires SSE2 (cpuid(0).EDX=%#x)\n", ASMCpuId_EDX(1)));
     589        return VERR_UNSUPPORTED_CPU;
     590    }
     591#endif
     592
    581593    /*
    582594     * Load the VMMR0.r0 module so that we can call GVMMR0CreateVM.
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