VirtualBox

Changeset 91765 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Oct 15, 2021 2:39:28 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147537
Message:

VMM: Refuse to run on macOS 12. bugref:10124

File:
1 edited

Legend:

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

    r91520 r91765  
    8484#include <iprt/semaphore.h>
    8585#include <iprt/string.h>
     86#ifdef RT_OS_DARWIN
     87# include <iprt/system.h>
     88#endif
    8689#include <iprt/time.h>
    8790#include <iprt/thread.h>
     
    179182    if (pfnVMAtError)
    180183        rc = VMR3AtErrorRegister(pUVM, pfnVMAtError, pvUserVM);
     184
     185#ifdef RT_OS_DARWIN
     186    /*
     187     * We currently do not run on darwin 12+ as we still have a few calls to
     188     * ring-3 left in VMMR0 that forces us to use a custom stack for parts of
     189     * the code.  This will cause falsely detected kernel stack overflow panics
     190     * in machine_switch_context and pmap_switch_context. See @bugref{10124},
     191     * @bugref{10093} and @bugref{10086}.
     192     */
     193    if (RT_SUCCESS(rc))
     194    {
     195        char szDarwinVersion[512];
     196        RTSystemQueryOSInfo(RTSYSOSINFO_RELEASE, szDarwinVersion, sizeof(szDarwinVersion));
     197        if (RTStrVersionCompare(szDarwinVersion, "21.0.0") >= 0)
     198            rc = vmR3SetErrorU(pUVM, VERR_NOT_SUPPORTED, RT_SRC_POS,
     199                               "macOS 12 and later is not supported yet by this VirtualBox version - sorry");
     200    }
     201#endif
    181202    if (RT_SUCCESS(rc))
    182203    {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette