Changeset 44521 in vbox for trunk/src/VBox
- Timestamp:
- Feb 1, 2013 11:14:54 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/VMM/testcase/tstSSM.cpp ¶
r41965 r44521 5 5 6 6 /* 7 * Copyright (C) 2006-20 07Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 99 99 * 100 100 * @returns VBox status code. 101 * @param p DevIns Device instance of the device which registered the data unit.101 * @param pVM The cross context VM handle. 102 102 * @param pSSM SSM operation handle. 103 103 */ 104 DECLCALLBACK(int) Item01Save(P PDMDEVINS pDevIns, PSSMHANDLE pSSM)104 DECLCALLBACK(int) Item01Save(PVM pVM, PSSMHANDLE pSSM) 105 105 { 106 106 uint64_t u64Start = RTTimeNanoTS(); 107 NOREF(p DevIns);107 NOREF(pVM); 108 108 109 109 /* … … 182 182 * 183 183 * @returns VBox status code. 184 * @param p DevIns Device instance of the device which registered the data unit.184 * @param pVM The cross context VM handle. 185 185 * @param pSSM SSM operation handle. 186 186 * @param uVersion The data layout version. 187 187 * @param uPass The data pass. 188 188 */ 189 DECLCALLBACK(int) Item01Load(P PDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass)190 { 191 NOREF(p DevIns); NOREF(uPass);189 DECLCALLBACK(int) Item01Load(PVM pVM, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass) 190 { 191 NOREF(pVM); NOREF(uPass); 192 192 if (uVersion != 0) 193 193 { … … 278 278 * 279 279 * @returns VBox status code. 280 * @param p DevIns Device instance of the device which registered the data unit.280 * @param pVM The cross context VM handle. 281 281 * @param pSSM SSM operation handle. 282 282 */ 283 DECLCALLBACK(int) Item02Save(P PDMDEVINS pDevIns, PSSMHANDLE pSSM)284 { 285 NOREF(p DevIns);283 DECLCALLBACK(int) Item02Save(PVM pVM, PSSMHANDLE pSSM) 284 { 285 NOREF(pVM); 286 286 uint64_t u64Start = RTTimeNanoTS(); 287 287 … … 340 340 * 341 341 * @returns VBox status code. 342 * @param p DevIns Device instance of the device which registered the data unit.342 * @param pVM The cross context VM handle. 343 343 * @param pSSM SSM operation handle. 344 344 * @param uVersion The data layout version. 345 345 * @param uPass The data pass. 346 346 */ 347 DECLCALLBACK(int) Item02Load(P PDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass)348 { 349 NOREF(p DevIns); NOREF(uPass);347 DECLCALLBACK(int) Item02Load(PVM pVM, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass) 348 { 349 NOREF(pVM); NOREF(uPass); 350 350 if (uVersion != 0) 351 351 { … … 408 408 * 409 409 * @returns VBox status code. 410 * @param p DevIns Device instance of the device which registered the data unit.410 * @param pVM The cross context VM handle. 411 411 * @param pSSM SSM operation handle. 412 412 */ 413 DECLCALLBACK(int) Item03Save(P PDMDEVINS pDevIns, PSSMHANDLE pSSM)414 { 415 NOREF(p DevIns);413 DECLCALLBACK(int) Item03Save(PVM pVM, PSSMHANDLE pSSM) 414 { 415 NOREF(pVM); 416 416 uint64_t u64Start = RTTimeNanoTS(); 417 417 … … 456 456 * 457 457 * @returns VBox status code. 458 * @param p DevIns Device instance of the device which registered the data unit.458 * @param pVM The cross context VM handle. 459 459 * @param pSSM SSM operation handle. 460 460 * @param uVersion The data layout version. 461 461 * @param uPass The data pass. 462 462 */ 463 DECLCALLBACK(int) Item03Load(P PDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass)464 { 465 NOREF(p DevIns); NOREF(uPass);463 DECLCALLBACK(int) Item03Load(PVM pVM, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass) 464 { 465 NOREF(pVM); NOREF(uPass); 466 466 if (uVersion != 123) 467 467 { … … 520 520 * 521 521 * @returns VBox status code. 522 * @param p DevIns Device instance of the device which registered the data unit.522 * @param pVM The cross context VM handle. 523 523 * @param pSSM SSM operation handle. 524 524 */ 525 DECLCALLBACK(int) Item04Save(P PDMDEVINS pDevIns, PSSMHANDLE pSSM)526 { 527 NOREF(p DevIns);525 DECLCALLBACK(int) Item04Save(PVM pVM, PSSMHANDLE pSSM) 526 { 527 NOREF(pVM); 528 528 uint64_t u64Start = RTTimeNanoTS(); 529 529 … … 564 564 * 565 565 * @returns VBox status code. 566 * @param p DevIns Device instance of the device which registered the data unit.566 * @param pVM The cross context VM handle. 567 567 * @param pSSM SSM operation handle. 568 568 * @param uVersion The data layout version. 569 569 * @param uPass The data pass. 570 570 */ 571 DECLCALLBACK(int) Item04Load(P PDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass)572 { 573 NOREF(p DevIns); NOREF(uPass);571 DECLCALLBACK(int) Item04Load(PVM pVM, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass) 572 { 573 NOREF(pVM); NOREF(uPass); 574 574 if (uVersion != 42) 575 575 { … … 710 710 * Register a few callbacks. 711 711 */ 712 rc = SSMR3Register Device(pVM, NULL, "SSM Testcase Data Item no.1 (all types)", 1, 0, 256, NULL,713 NULL, NULL, NULL,714 NULL, Item01Save, NULL,715 NULL, Item01Load, NULL);712 rc = SSMR3RegisterInternal(pVM, "SSM Testcase Data Item no.1 (all types)", 1, 0, 256, 713 NULL, NULL, NULL, 714 NULL, Item01Save, NULL, 715 NULL, Item01Load, NULL); 716 716 if (RT_FAILURE(rc)) 717 717 { … … 720 720 } 721 721 722 rc = SSMR3Register Device(pVM, NULL, "SSM Testcase Data Item no.2 (rand mem)", 2, 0, _1M * 8, NULL,723 NULL, NULL, NULL,724 NULL, Item02Save, NULL,725 NULL, Item02Load, NULL);722 rc = SSMR3RegisterInternal(pVM, "SSM Testcase Data Item no.2 (rand mem)", 2, 0, _1M * 8, 723 NULL, NULL, NULL, 724 NULL, Item02Save, NULL, 725 NULL, Item02Load, NULL); 726 726 if (RT_FAILURE(rc)) 727 727 { … … 730 730 } 731 731 732 rc = SSMR3Register Device(pVM, NULL, "SSM Testcase Data Item no.3 (big mem)", 0, 123, 512*_1M, NULL,733 NULL, NULL, NULL,734 NULL, Item03Save, NULL,735 NULL, Item03Load, NULL);732 rc = SSMR3RegisterInternal(pVM, "SSM Testcase Data Item no.3 (big mem)", 0, 123, 512*_1M, 733 NULL, NULL, NULL, 734 NULL, Item03Save, NULL, 735 NULL, Item03Load, NULL); 736 736 if (RT_FAILURE(rc)) 737 737 { … … 740 740 } 741 741 742 rc = SSMR3Register Device(pVM, NULL, "SSM Testcase Data Item no.4 (big zero mem)", 0, 42, 512*_1M, NULL,743 NULL, NULL, NULL,744 NULL, Item04Save, NULL,745 NULL, Item04Load, NULL);742 rc = SSMR3RegisterInternal(pVM, "SSM Testcase Data Item no.4 (big zero mem)", 0, 42, 512*_1M, 743 NULL, NULL, NULL, 744 NULL, Item04Save, NULL, 745 NULL, Item04Load, NULL); 746 746 if (RT_FAILURE(rc)) 747 747 {
Note:
See TracChangeset
for help on using the changeset viewer.