Changeset 81627 in vbox
- Timestamp:
- Nov 1, 2019 9:07:06 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134384
- Location:
- trunk/src/VBox/Devices/VMMDev
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r81625 r81627 2542 2542 return PGMR3SharedModuleGetPageState(PDMDevHlpGetVM(pDevIns), pReq->GCPtrPage, &pReq->fShared, &pReq->uPageFlags); 2543 2543 # else 2544 RT_NOREF(p This);2544 RT_NOREF(pDevIns); 2545 2545 return VERR_NOT_IMPLEMENTED; 2546 2546 # endif … … 4398 4398 * Clean up the testing device. 4399 4399 */ 4400 vmmdev TestingTerminate(pDevIns);4400 vmmdevR3TestingTerminate(pDevIns); 4401 4401 #endif 4402 4402 … … 4688 4688 * Initialize testing. 4689 4689 */ 4690 rc = vmmdev TestingInitialize(pDevIns);4690 rc = vmmdevR3TestingInitialize(pDevIns); 4691 4691 if (RT_FAILURE(rc)) 4692 4692 return rc; … … 4831 4831 rc = PDMDevHlpIoPortSetUpContext(pDevIns, pThis->hIoPortFast, vmmdevFastRequestHandler, vmmdevFastRequestIrqAck, NULL); 4832 4832 AssertRCReturn(rc, rc); 4833 4834 # ifndef VBOX_WITHOUT_TESTING_FEATURES 4835 /* 4836 * Initialize testing. 4837 */ 4838 rc = vmmdevRZTestingInitialize(pDevIns); 4839 AssertRCReturn(rc, rc); 4840 # endif 4833 4841 4834 4842 return VINF_SUCCESS; -
trunk/src/VBox/Devices/VMMDev/VMMDevTesting.cpp
r81625 r81627 685 685 * @param pDevIns The VMMDev device instance. 686 686 */ 687 void vmmdev TestingTerminate(PPDMDEVINS pDevIns)687 void vmmdevR3TestingTerminate(PPDMDEVINS pDevIns) 688 688 { 689 689 PVMMDEV pThis = PDMDEVINS_2_DATA(pDevIns, PVMMDEV); … … 707 707 * @param pDevIns The VMMDev device instance. 708 708 */ 709 int vmmdev TestingInitialize(PPDMDEVINS pDevIns)709 int vmmdevR3TestingInitialize(PPDMDEVINS pDevIns) 710 710 { 711 711 PVMMDEV pThis = PDMDEVINS_2_DATA(pDevIns, PVMMDEV); … … 749 749 } 750 750 751 #endif /* IN_RING3 */ 751 #else /* !IN_RING3 */ 752 753 /** 754 * Does the ring-0/raw-mode initialization of the testing part if enabled. 755 * 756 * @returns VBox status code. 757 * @param pDevIns The VMMDev device instance. 758 */ 759 int vmmdevRZTestingInitialize(PPDMDEVINS pDevIns) 760 { 761 PVMMDEV pThis = PDMDEVINS_2_DATA(pDevIns, PVMMDEV); 762 int rc; 763 764 if (!pThis->fTestingEnabled) 765 return VINF_SUCCESS; 766 767 if (pThis->fTestingMMIO) 768 { 769 rc = PDMDevHlpMmioSetUpContext(pDevIns, pThis->hMmioTesting, vmmdevTestingMmioWrite, vmmdevTestingMmioRead, NULL); 770 AssertRCReturn(rc, rc); 771 } 772 773 rc = PDMDevHlpIoPortSetUpContext(pDevIns, pThis->hIoPortTesting, vmmdevTestingIoWrite, vmmdevTestingIoRead, NULL); 774 AssertRCReturn(rc, rc); 775 776 return VINF_SUCCESS; 777 } 778 779 #endif /* !IN_RING3 */ 752 780 #endif /* !VBOX_WITHOUT_TESTING_FEATURES */ 753 781 -
trunk/src/VBox/Devices/VMMDev/VMMDevTesting.h
r76565 r81627 27 27 RT_C_DECLS_BEGIN 28 28 29 int vmmdevTestingInitialize(PPDMDEVINS pDevIns); 30 void vmmdevTestingTerminate(PPDMDEVINS pDevIns); 29 int vmmdevR3TestingInitialize(PPDMDEVINS pDevIns); 30 void vmmdevR3TestingTerminate(PPDMDEVINS pDevIns); 31 int vmmdevRZTestingInitialize(PPDMDEVINS pDevIns); 31 32 32 33 RT_C_DECLS_END
Note:
See TracChangeset
for help on using the changeset viewer.