vbox的更動 49141 路徑 trunk/src/VBox/VMM/testcase
- 時間撮記:
- 2013-10-16 下午02:07:14 (11 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/testcase/tstVMM.cpp
r46915 r49141 55 55 * Internal Functions * 56 56 *******************************************************************************/ 57 VMMR3DECL(int) VMMDoTest(PVM pVM); /* Linked into VMM, see ../VMMTests.cpp. */ 57 VMMR3DECL(int) VMMDoTest(PVM pVM); /* Linked into VMM, see ../VMMTests.cpp. */ 58 VMMR3DECL(int) VMMDoBruteForceMsrs(PVM pVM); /* Ditto. */ 58 59 59 60 … … 210 211 enum 211 212 { 212 kTstVMMTest_VMM, kTstVMMTest_TM 213 kTstVMMTest_VMM, kTstVMMTest_TM, kTstVMMTest_MSRs 213 214 } enmTestOpt = kTstVMMTest_VMM; 214 215 … … 230 231 else if (!strcmp("tm", ValueUnion.psz)) 231 232 enmTestOpt = kTstVMMTest_TM; 233 else if (!strcmp("msr", ValueUnion.psz) || !strcmp("msrs", ValueUnion.psz)) 234 enmTestOpt = kTstVMMTest_MSRs; 232 235 else 233 236 { … … 238 241 239 242 case 'h': 240 RTPrintf("usage: tstVMM [--cpus|-c cpus] [--test <vmm|tm >]\n");243 RTPrintf("usage: tstVMM [--cpus|-c cpus] [--test <vmm|tm|msr>]\n"); 241 244 return 1; 242 245 … … 274 277 if (RT_FAILURE(rc)) 275 278 RTTestFailed(hTest, "VMMDoTest failed: rc=%Rrc\n", rc); 279 STAMR3Dump(pUVM, "*"); 276 280 break; 277 281 } … … 290 294 if (RT_FAILURE(rc)) 291 295 RTTestFailed(hTest, "VMMDoTest failed: rc=%Rrc\n", rc); 292 break; 293 } 294 } 295 296 STAMR3Dump(pUVM, "*"); 296 STAMR3Dump(pUVM, "*"); 297 break; 298 } 299 300 case kTstVMMTest_MSRs: 301 { 302 RTTestSub(hTest, "MSRs"); 303 if (g_cCpus == 1) 304 { 305 rc = VMR3ReqCallWaitU(pUVM, 0 /*idDstCpu*/, (PFNRT)VMMDoBruteForceMsrs, 1, pVM); 306 if (RT_FAILURE(rc)) 307 RTTestFailed(hTest, "VMMDoBruteForceMsrs failed: rc=%Rrc\n", rc); 308 } 309 else 310 RTTestFailed(hTest, "The MSR test can only be run with one VCpu!\n"); 311 break; 312 } 313 } 297 314 298 315 /*
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器