VirtualBox

Ignore:
Timestamp:
Jul 28, 2019 1:29:43 PM (5 years ago)
Author:
vboxsync
Message:

Main: Kicking out raw-mode. bugref:9517

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r79928 r80023  
    855855        InsertConfigInteger(pRoot, "CpuExecutionCap",      ulCpuExecutionCap);
    856856        InsertConfigInteger(pRoot, "TimerMillies",         10);
    857 #ifdef VBOX_WITH_RAW_MODE
    858         InsertConfigInteger(pRoot, "RawR3Enabled",         1);     /* boolean */
    859         InsertConfigInteger(pRoot, "RawR0Enabled",         1);     /* boolean */
    860         /** @todo Config: RawR0, PATMEnabled and CSAMEnabled needs attention later. */
    861         InsertConfigInteger(pRoot, "PATMEnabled",          1);     /* boolean */
    862         InsertConfigInteger(pRoot, "CSAMEnabled",          1);     /* boolean */
    863 #endif
    864 
    865 #ifdef VBOX_WITH_RAW_RING1
    866         if (osTypeId == "QNX")
    867         {
    868             /* QNX needs special treatment in raw mode due to its use of ring-1. */
    869             InsertConfigInteger(pRoot, "RawR1Enabled",     1);     /* boolean */
    870         }
    871 #endif
    872857
    873858        BOOL fPageFusion = FALSE;
     
    10821067
    10831068        BOOL fHMForced;
    1084 #ifdef VBOX_WITH_RAW_MODE
    1085         /* - With more than 4GB PGM will use different RAMRANGE sizes for raw
    1086              mode and hv mode to optimize lookup times.
    1087            - With more than one virtual CPU, raw-mode isn't a fallback option.
    1088            - With a 64-bit guest, raw-mode isn't a fallback option either. */
    1089         fHMForced = fHMEnabled
    1090                  && (   cbRam + cbRamHole > _4G
    1091                      || cCpus > 1
    1092                      || fIsGuest64Bit);
    1093 # ifdef RT_OS_DARWIN
    1094         fHMForced = fHMEnabled;
    1095 # endif
    1096         if (fHMForced)
    1097         {
    1098             if (cbRam + cbRamHole > _4G)
    1099                 LogRel(("fHMForced=true - Lots of RAM\n"));
    1100             if (cCpus > 1)
    1101                 LogRel(("fHMForced=true - SMP\n"));
    1102             if (fIsGuest64Bit)
    1103                 LogRel(("fHMForced=true - 64-bit guest\n"));
    1104 # ifdef RT_OS_DARWIN
    1105             LogRel(("fHMForced=true - Darwin host\n"));
    1106 # endif
    1107         }
    1108 #else  /* !VBOX_WITH_RAW_MODE */
    11091069        fHMEnabled = fHMForced = TRUE;
    11101070        LogRel(("fHMForced=true - No raw-mode support in this build!\n"));
    1111 #endif /* !VBOX_WITH_RAW_MODE */
    11121071        if (!fHMForced) /* No need to query if already forced above. */
    11131072        {
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