Changeset 13745 in vbox
- Timestamp:
- Nov 3, 2008 12:33:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VM.cpp
r13742 r13745 490 490 /* Make sure the CPU count in the config data matches. */ 491 491 rc = CFGMR3QueryU32Def(CFGMR3GetRoot(pVM), "NumCPUs", &pVM->cCPUs, 1); 492 Assert LogRelMsgRCReturn(rc, ("Configuration error: Querying \"NumCPUs\" as integer failed, rc=%Vrc\n", rc), rc);492 AssertMsgRC(rc, ("Configuration error: Querying \"NumCPUs\" as integer failed, rc=%Vrc\n", rc)); 493 493 Assert(pVM->cCPUs == cCPUs); 494 494 495 495 #ifdef VBOX_WITH_SMP_GUESTS 496 Assert LogRelMsgReturn(pVM->cCPUs > 0 && pVM->cCPUs <= VMCPU_MAX_CPU_COUNT,497 ("Configuration error: \"NumCPUs\"=%RU32 is out of range [1..255]\n", pVM->cCPUs), VERR_INVALID_PARAMETER);496 AssertMsg(pVM->cCPUs > 0 && pVM->cCPUs <= VMCPU_MAX_CPU_COUNT, 497 ("Configuration error: \"NumCPUs\"=%RU32 is out of range [1..255]\n", pVM->cCPUs)); 498 498 #else 499 Assert LogRelMsgReturn(pVM->cCPUs != 0,500 ("Configuration error: \"NumCPUs\"=%RU32, expected 1\n", pVM->cCPUs), VERR_INVALID_PARAMETER);499 AssertMsg(pVM->cCPUs != 0, 500 ("Configuration error: \"NumCPUs\"=%RU32, expected 1\n", pVM->cCPUs)); 501 501 #endif 502 if (pVM->cCPUs == cCPUs) 502 if (pVM->cCPUs != cCPUs) 503 rc = VERR_INVALID_PARAMETER; 504 else 505 #ifdef VBOX_WITH_SMP_GUESTS 506 if (pVM->cCPUs == 0 || pVM->cCPUs > VMCPU_MAX_CPU_COUNT) 507 rc = VERR_INVALID_PARAMETER; 508 #else 509 if (pVM->cCPUs != 1) 510 rc = VERR_INVALID_PARAMETER; 511 #endif 512 if (VBOX_SUCCESS(rc)) 503 513 { 504 514 /*
Note:
See TracChangeset
for help on using the changeset viewer.