Changeset 80023 in vbox for trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
- Timestamp:
- Jul 28, 2019 1:29:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r79928 r80023 855 855 InsertConfigInteger(pRoot, "CpuExecutionCap", ulCpuExecutionCap); 856 856 InsertConfigInteger(pRoot, "TimerMillies", 10); 857 #ifdef VBOX_WITH_RAW_MODE858 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 #endif864 865 #ifdef VBOX_WITH_RAW_RING1866 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 #endif872 857 873 858 BOOL fPageFusion = FALSE; … … 1082 1067 1083 1068 BOOL fHMForced; 1084 #ifdef VBOX_WITH_RAW_MODE1085 /* - With more than 4GB PGM will use different RAMRANGE sizes for raw1086 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 = fHMEnabled1090 && ( cbRam + cbRamHole > _4G1091 || cCpus > 11092 || fIsGuest64Bit);1093 # ifdef RT_OS_DARWIN1094 fHMForced = fHMEnabled;1095 # endif1096 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_DARWIN1105 LogRel(("fHMForced=true - Darwin host\n"));1106 # endif1107 }1108 #else /* !VBOX_WITH_RAW_MODE */1109 1069 fHMEnabled = fHMForced = TRUE; 1110 1070 LogRel(("fHMForced=true - No raw-mode support in this build!\n")); 1111 #endif /* !VBOX_WITH_RAW_MODE */1112 1071 if (!fHMForced) /* No need to query if already forced above. */ 1113 1072 {
Note:
See TracChangeset
for help on using the changeset viewer.