- Timestamp:
- Apr 5, 2021 7:58:44 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevIommuIntel.cpp
r88342 r88367 46 46 #define DMAR_ASSERT_MMIO_ACCESS_RET(a_off, a_cb) \ 47 47 do { \ 48 AssertReturn( !(off & 3), VINF_IOM_MMIO_UNUSED_FF); \49 AssertReturn( cb == 4 || cb == 8, VINF_IOM_MMIO_UNUSED_FF); \48 AssertReturn((a_cb) == 4 || (a_cb) == 8, VINF_IOM_MMIO_UNUSED_FF); \ 49 AssertReturn(!((a_off) & ((a_cb) - 1)), VINF_IOM_MMIO_UNUSED_FF); \ 50 50 } while (0); 51 51 … … 682 682 } 683 683 } 684 685 LogFlowFunc(("offReg=%#x\n", offReg)); 684 686 return VINF_SUCCESS; 685 687 } 688 686 689 return VINF_IOM_MMIO_UNUSED_FF; 687 690 } … … 705 708 else 706 709 *(uint32_t *)pv = dmarRegRead32(pThis, offReg); 710 711 LogFlowFunc(("offReg=%#x\n", offReg)); 707 712 return VINF_SUCCESS; 708 713 } … … 719 724 { 720 725 RT_NOREF1(pDevIns); 726 LogFlowFunc(("\n")); 721 727 } 722 728 … … 728 734 { 729 735 RT_NOREF(pDevIns); 730 return VERR_NOT_IMPLEMENTED; 736 LogFlowFunc(("\n")); 737 return VINF_SUCCESS; 731 738 } 732 739 … … 827 834 AssertRCReturn(rc, rc); 828 835 829 return VERR_NOT_IMPLEMENTED; 836 LogRel(("%s: Cap=%#RX64 Ext. Cap=%#RX64\n", DMAR_LOG_PFX, dmarRegRead64(pThis, VTD_MMIO_OFF_CAP_REG), 837 dmarRegRead64(pThis, VTD_MMIO_OFF_ECAP_REG))); 838 return VINF_SUCCESS; 830 839 } 831 840 … … 859 868 IommuReg.pfnMsiRemap = iommuIntelMsiRemap; 860 869 IommuReg.u32TheEnd = PDM_IOMMUREGCC_VERSION; 870 861 871 rc = PDMDevHlpIommuSetUpContext(pDevIns, &IommuReg, &pThisCC->CTX_SUFF(pIommuHlp)); 862 872 AssertRCReturn(rc, rc); … … 866 876 AssertPtrReturn(pThisCC->CTX_SUFF(pIommuHlp)->pfnLock, VERR_INVALID_POINTER); 867 877 AssertPtrReturn(pThisCC->CTX_SUFF(pIommuHlp)->pfnUnlock, VERR_INVALID_POINTER); 878 868 879 return VINF_SUCCESS; 869 880 }
Note:
See TracChangeset
for help on using the changeset viewer.