Changeset 88808 in vbox
- Timestamp:
- Apr 30, 2021 2:09:50 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevIommuIntel.cpp
r88804 r88808 1934 1934 uint8_t const uMgaw = RT_BF_GET(uCapReg, VTD_BF_CAP_REG_MGAW); 1935 1935 uint8_t const uNfr = RT_BF_GET(uCapReg, VTD_BF_CAP_REG_NFR); 1936 pHlp->pfnPrintf(pHlp, " ND = % #x\n",RT_BF_GET(uCapReg, VTD_BF_CAP_REG_ND));1936 pHlp->pfnPrintf(pHlp, " ND = %u\n", RT_BF_GET(uCapReg, VTD_BF_CAP_REG_ND)); 1937 1937 pHlp->pfnPrintf(pHlp, " AFL = %RTbool\n", RT_BF_GET(uCapReg, VTD_BF_CAP_REG_AFL)); 1938 1938 pHlp->pfnPrintf(pHlp, " RWBF = %RTbool\n", RT_BF_GET(uCapReg, VTD_BF_CAP_REG_RWBF)); … … 1946 1946 pHlp->pfnPrintf(pHlp, " SLLPS = %#x\n", RT_BF_GET(uCapReg, VTD_BF_CAP_REG_SLLPS)); 1947 1947 pHlp->pfnPrintf(pHlp, " PSI = %RTbool\n", RT_BF_GET(uCapReg, VTD_BF_CAP_REG_PSI)); 1948 pHlp->pfnPrintf(pHlp, " NFR = % #x(%u FRCD register%s)\n", uNfr, uNfr + 1, uNfr > 0 ? "s" : "");1948 pHlp->pfnPrintf(pHlp, " NFR = %u (%u FRCD register%s)\n", uNfr, uNfr + 1, uNfr > 0 ? "s" : ""); 1949 1949 pHlp->pfnPrintf(pHlp, " MAMV = %#x\n", RT_BF_GET(uCapReg, VTD_BF_CAP_REG_MAMV)); 1950 1950 pHlp->pfnPrintf(pHlp, " DWD = %RTbool\n", RT_BF_GET(uCapReg, VTD_BF_CAP_REG_DWD)); … … 1975 1975 pHlp->pfnPrintf(pHlp, " NWFS = %RTbool\n", RT_BF_GET(uEcapReg, VTD_BF_ECAP_REG_NWFS)); 1976 1976 pHlp->pfnPrintf(pHlp, " EAFS = %RTbool\n", RT_BF_GET(uEcapReg, VTD_BF_ECAP_REG_EAFS)); 1977 pHlp->pfnPrintf(pHlp, " PSS = % #x(%u bits)\n", uPss, uPss > 0 ? uPss + 1 : 0);1977 pHlp->pfnPrintf(pHlp, " PSS = %u (%u bits)\n", uPss, uPss > 0 ? uPss + 1 : 0); 1978 1978 pHlp->pfnPrintf(pHlp, " PASID = %RTbool\n", RT_BF_GET(uEcapReg, VTD_BF_ECAP_REG_PASID)); 1979 1979 pHlp->pfnPrintf(pHlp, " DIT = %RTbool\n", RT_BF_GET(uEcapReg, VTD_BF_ECAP_REG_DIT)); … … 2020 2020 { 2021 2021 uint8_t const uTtm = RT_BF_GET(uRtaddrReg, VTD_BF_RTADDR_REG_TTM); 2022 pHlp->pfnPrintf(pHlp, " TTM = %u (%s)\n", uTtm, vtdRtaddrRegGetTtmDesc(uTtm));2023 pHlp->pfnPrintf(pHlp, " RTA = %#RX64\n", RT_BF_GET(uRtaddrReg, VTD_BF_RTADDR_REG_RTA));2022 pHlp->pfnPrintf(pHlp, " TTM = %u (%s)\n", uTtm, vtdRtaddrRegGetTtmDesc(uTtm)); 2023 pHlp->pfnPrintf(pHlp, " RTA = %#RX64\n", RT_BF_GET(uRtaddrReg, VTD_BF_RTADDR_REG_RTA)); 2024 2024 } 2025 2025 pHlp->pfnPrintf(pHlp, " CCMD_REG = %#RX64\n", uCcmdReg); … … 2035 2035 pHlp->pfnPrintf(pHlp, " FRI = %u\n", RT_BF_GET(uFstsReg, VTD_BF_FSTS_REG_FRI)); 2036 2036 } 2037 2038 /** @todo Verbose others as needed during debugging/rainy day. */2039 2037 pHlp->pfnPrintf(pHlp, " FECTL_REG = %#RX32\n", uFectlReg); 2038 { 2039 pHlp->pfnPrintf(pHlp, " IM = %RTbool\n", RT_BF_GET(uFectlReg, VTD_BF_FECTL_REG_IM)); 2040 pHlp->pfnPrintf(pHlp, " IP = %RTbool\n", RT_BF_GET(uFectlReg, VTD_BF_FECTL_REG_IP)); 2041 } 2040 2042 pHlp->pfnPrintf(pHlp, " FEDATA_REG = %#RX32\n", uFedataReg); 2041 2043 pHlp->pfnPrintf(pHlp, " FEADDR_REG = %#RX32\n", uFeaddrReg); 2042 2044 pHlp->pfnPrintf(pHlp, " FEUADDR_REG = %#RX32\n", uFeuaddrReg); 2045 /** @todo Verbose others as needed during debugging/rainy day. */ 2043 2046 pHlp->pfnPrintf(pHlp, " AFLOG_REG = %#RX64\n", uAflogReg); 2044 2047 pHlp->pfnPrintf(pHlp, " PMEN_REG = %#RX32\n", uPmenReg); … … 2050 2053 pHlp->pfnPrintf(pHlp, " IQT_REG = %#RX64\n", uIqtReg); 2051 2054 pHlp->pfnPrintf(pHlp, " IQA_REG = %#RX64\n", uIqaReg); 2055 { 2056 uint8_t const fDw = RT_BF_GET(uIqaReg, VTD_BF_IQA_REG_DW); 2057 uint8_t const fQs = RT_BF_GET(uIqaReg, VTD_BF_IQA_REG_QS); 2058 uint8_t const cQueuePages = 1 << fQs; 2059 pHlp->pfnPrintf(pHlp, " DW = %u (%s)\n", fDw, fDw == VTD_IQA_REG_DW_128_BIT ? "128-bit" : "256-bit"); 2060 pHlp->pfnPrintf(pHlp, " QS = %u (%u page%s)\n", fQs, cQueuePages, cQueuePages > 1 ? "s" : ""); 2061 } 2052 2062 pHlp->pfnPrintf(pHlp, " ICS_REG = %#RX32\n", uIcsReg); 2063 { 2064 pHlp->pfnPrintf(pHlp, " IWC = %u\n", RT_BF_GET(uIcsReg, VTD_BF_ICS_REG_IWC)); 2065 } 2053 2066 pHlp->pfnPrintf(pHlp, " IECTL_REG = %#RX32\n", uIectlReg); 2067 { 2068 pHlp->pfnPrintf(pHlp, " IM = %RTbool\n", RT_BF_GET(uIectlReg, VTD_BF_IECTL_REG_IM)); 2069 pHlp->pfnPrintf(pHlp, " IP = %RTbool\n", RT_BF_GET(uIectlReg, VTD_BF_IECTL_REG_IP)); 2070 } 2054 2071 pHlp->pfnPrintf(pHlp, " IEDATA_REG = %#RX32\n", uIedataReg); 2055 2072 pHlp->pfnPrintf(pHlp, " IEADDR_REG = %#RX32\n", uIeaddrReg); 2056 2073 pHlp->pfnPrintf(pHlp, " IEUADDR_REG = %#RX32\n", uIeuaddrReg); 2057 2074 pHlp->pfnPrintf(pHlp, " IQERCD_REG = %#RX64\n", uIqercdReg); 2075 { 2076 pHlp->pfnPrintf(pHlp, " ICESID = %#RX32\n", RT_BF_GET(uIqercdReg, VTD_BF_IQERCD_REG_ICESID)); 2077 pHlp->pfnPrintf(pHlp, " ITESID = %#RX32\n", RT_BF_GET(uIqercdReg, VTD_BF_IQERCD_REG_ITESID)); 2078 pHlp->pfnPrintf(pHlp, " IQEI = %#RX32\n", RT_BF_GET(uIqercdReg, VTD_BF_IQERCD_REG_IQEI)); 2079 } 2058 2080 pHlp->pfnPrintf(pHlp, " IRTA_REG = %#RX64\n", uIrtaReg); 2059 2081 pHlp->pfnPrintf(pHlp, " PQH_REG = %#RX64\n", uPqhReg);
Note:
See TracChangeset
for help on using the changeset viewer.