VirtualBox

Changeset 71699 in vbox


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

SUPDrv,VBoxVMM: Require SSE2 to be present.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp

    r71198 r71699  
    514514#endif
    515515
     516#if (defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86)) && !defined(VBOX_WITH_OLD_CPU_SUPPORT)
     517    /*
     518     * Require SSE2 to be present.
     519     */
     520    if (!(ASMCpuId_EDX(1) & X86_CPUID_FEATURE_EDX_SSE2))
     521    {
     522        SUPR0Printf("vboxdrv: Requires SSE2 (cpuid(0).EDX=%#x)\n", ASMCpuId_EDX(1));
     523        return VERR_UNSUPPORTED_CPU;
     524    }
     525#endif
     526
    516527    /*
    517528     * Initialize it.
  • 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