Changeset 70953 in vbox
- Timestamp:
- Feb 10, 2018 4:40:22 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120796
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/vm.h
r70948 r70953 1069 1069 uint8_t const bMainExecutionEngine; 1070 1070 1071 /** Whether to recompile user mode code or run it raw/hm. */ 1071 /** Whether to recompile user mode code or run it raw/hm/nem. 1072 * In non-raw-mode both fRecompileUser and fRecompileSupervisor must be set 1073 * to recompiler stuff. */ 1072 1074 bool fRecompileUser; 1073 /** Whether to recompile supervisor mode code or run it raw/hm. */ 1075 /** Whether to recompile supervisor mode code or run it raw/hm/nem. 1076 * In non-raw-mode both fRecompileUser and fRecompileSupervisor must be set 1077 * to recompiler stuff. */ 1074 1078 bool fRecompileSupervisor; 1075 /** Whether raw mode supports ring-1 code or not. */ 1079 /** Whether raw mode supports ring-1 code or not. 1080 * This will be cleared when not in raw-mode. */ 1076 1081 bool fRawRing1Enabled; 1077 1082 /** PATM enabled flag. 1078 * This is placed here for performance reasons. */ 1083 * This is placed here for performance reasons. 1084 * This will be cleared when not in raw-mode. */ 1079 1085 bool fPATMEnabled; 1080 1086 /** CSAM enabled flag. 1081 * This is placed here for performance reasons. */ 1087 * This is placed here for performance reasons. 1088 * This will be cleared when not in raw-mode. */ 1082 1089 bool fCSAMEnabled; 1090 1083 1091 /** Hardware VM support is available and enabled. 1084 1092 * Determined very early during init. … … 1089 1097 * This is never set on 64-bit hosts, only 32-bit hosts requires it. */ 1090 1098 bool fHMNeedRawModeCtx; 1099 1091 1100 /** Set when this VM is the master FT node. 1092 1101 * @todo This doesn't need to be here, FTM should store it in it's own -
trunk/src/VBox/VMM/VMMR3/CSAM.cpp
r70948 r70953 2516 2516 { 2517 2517 Assert(VM_IS_RAW_MODE_ENABLED(pVM)); 2518 if ( EMIsRawRing0Enabled(pVM) == false|| PATMIsPatchGCAddr(pVM, pInstrGC) == true)2518 if (!EMIsRawRing0Enabled(pVM) || PATMIsPatchGCAddr(pVM, pInstrGC) == true) 2519 2519 { 2520 2520 // No use … … 2546 2546 Assert(VM_IS_RAW_MODE_ENABLED(pVM)); 2547 2547 2548 if ( EMIsRawRing0Enabled(pVM) == false2548 if ( !EMIsRawRing0Enabled(pVM) 2549 2549 || PATMIsPatchGCAddr(pVM, pInstrGC) == true) 2550 2550 { … … 2693 2693 2694 2694 AssertReturn(VM_IS_RAW_MODE_ENABLED(pVM), VERR_CSAM_HM_IPE); 2695 if ( EMIsRawRing0Enabled(pVM) == false)2695 if (!EMIsRawRing0Enabled(pVM)) 2696 2696 { 2697 2697 /* Enabling interrupt gates only works when raw ring 0 is enabled. */ -
trunk/src/VBox/VMM/VMMR3/EM.cpp
r70948 r70953 148 148 } 149 149 150 Log (("EMR3Init: fRecompileUser=%RTbool fRecompileSupervisor=%RTbool fRawRing1Enabled=%RTbool fIemExecutesAll=%RTbool fGuruOnTripleFault=%RTbool\n",151 pVM->fRecompileUser, pVM->fRecompileSupervisor, pVM->fRawRing1Enabled, pVM->em.s.fIemExecutesAll, pVM->em.s.fGuruOnTripleFault));150 LogRel(("EMR3Init: fRecompileUser=%RTbool fRecompileSupervisor=%RTbool fRawRing1Enabled=%RTbool fIemExecutesAll=%RTbool fGuruOnTripleFault=%RTbool\n", 151 pVM->fRecompileUser, pVM->fRecompileSupervisor, pVM->fRawRing1Enabled, pVM->em.s.fIemExecutesAll, pVM->em.s.fGuruOnTripleFault)); 152 152 153 153 #ifdef VBOX_WITH_REM … … 660 660 break; 661 661 case EMEXECPOLICY_RECOMPILE_RING3: 662 pVM->fRecompileUser = pArgs->fEnforce;662 pVM->fRecompileUser = pArgs->fEnforce; 663 663 break; 664 664 case EMEXECPOLICY_IEM_ALL: … … 668 668 AssertFailedReturn(VERR_INVALID_PARAMETER); 669 669 } 670 Log (("emR3SetExecutionPolicy: fRecompileUser=%RTbool fRecompileSupervisor=%RTbool fIemExecutesAll=%RTbool\n",671 pVM->fRecompileUser, pVM->fRecompileSupervisor, pVM->em.s.fIemExecutesAll));670 LogRel(("emR3SetExecutionPolicy: fRecompileUser=%RTbool fRecompileSupervisor=%RTbool fIemExecutesAll=%RTbool\n", 671 pVM->fRecompileUser, pVM->fRecompileSupervisor, pVM->em.s.fIemExecutesAll)); 672 672 } 673 673 -
trunk/src/VBox/VMM/VMMR3/VM.cpp
r70948 r70953 789 789 * Base EM and HM config properties. 790 790 */ 791 /** @todo We don't need to read any of this here. The relevant modules reads 792 * them again and will be in a better position to set them correctly. */ 791 793 Assert(pVM->fRecompileUser == false); /* ASSUMES all zeros at this point */ 792 #ifdef VBOX_WITH_RAW_MODE793 794 bool fEnabled; 794 795 rc = CFGMR3QueryBoolDef(pRoot, "RawR3Enabled", &fEnabled, false); AssertRCReturn(rc, rc); … … 796 797 rc = CFGMR3QueryBoolDef(pRoot, "RawR0Enabled", &fEnabled, false); AssertRCReturn(rc, rc); 797 798 pVM->fRecompileSupervisor = !fEnabled; 799 #ifdef VBOX_WITH_RAW_MODE 798 800 # ifdef VBOX_WITH_RAW_RING1 799 801 rc = CFGMR3QueryBoolDef(pRoot, "RawR1Enabled", &pVM->fRawRing1Enabled, false); … … 809 811 pVM->fHMEnabled, pVM->fRecompileUser, pVM->fRecompileSupervisor, 810 812 pVM->fRawRing1Enabled, pVM->fCSAMEnabled, pVM->fPATMEnabled)); 811 812 813 813 814 /*
Note:
See TracChangeset
for help on using the changeset viewer.