- Timestamp:
- Apr 1, 2021 1:12:28 PM (4 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r88079 r88345 236 236 #endif 237 237 MODIFYVM_CHIPSET, 238 #if def VBOX_WITH_IOMMU_AMD238 #if defined(VBOX_WITH_IOMMU_AMD) || defined(VBOX_WITH_IOMMU_INTEL) 239 239 MODIFYVM_IOMMU, 240 240 #endif … … 412 412 { "--iocachesize", MODIFYVM_IOCACHESIZE, RTGETOPT_REQ_UINT32 }, 413 413 { "--chipset", MODIFYVM_CHIPSET, RTGETOPT_REQ_STRING }, 414 #if def VBOX_WITH_IOMMU_AMD414 #if defined(VBOX_WITH_IOMMU_AMD) || defined(VBOX_WITH_IOMMU_INTEL) 415 415 { "--iommu", MODIFYVM_IOMMU, RTGETOPT_REQ_STRING }, 416 416 #endif … … 3013 3013 break; 3014 3014 } 3015 #if def VBOX_WITH_IOMMU_AMD3015 #if defined(VBOX_WITH_IOMMU_AMD) || defined(VBOX_WITH_IOMMU_INTEL) 3016 3016 case MODIFYVM_IOMMU: 3017 3017 { … … 3021 3021 else if (!RTStrICmp(ValueUnion.psz, "amd")) 3022 3022 CHECK_ERROR(sessionMachine, COMSETTER(IommuType)(IommuType_AMD)); 3023 /** @todo Add Intel when it's supported, remove warning from below. */ 3023 else if (!RTStrICmp(ValueUnion.psz, "intel")) 3024 CHECK_ERROR(sessionMachine, COMSETTER(IommuType)(IommuType_Intel)); 3024 3025 else if (!RTStrICmp(ValueUnion.psz, "automatic")) 3025 3026 { 3026 3027 CHECK_ERROR(sessionMachine, COMSETTER(IommuType)(IommuType_Automatic)); 3028 #ifndef VBOX_WITH_IOMMU_INTEL 3027 3029 RTStrmPrintf(g_pStdErr, 3028 3030 "Warning: On Intel hosts, 'automatic' will not enable an IOMMU since the Intel IOMMU device is not supported yet.\n"); 3031 #endif 3029 3032 } 3030 3033 else -
trunk/src/VBox/Main/Makefile.kmk
r88199 r88345 484 484 $(if $(VBOX_WITH_LIBCURL),VBOX_WITH_HOST_UPDATE_CHECK,) \ 485 485 $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \ 486 $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,) \ 486 487 $(if-expr defined(VBOX_WITH_SDS),VBOX_WITH_SDS,) 487 488 ifdef VBOX_WITH_USB … … 893 894 $(if $(VBOX_WITH_VRDEAUTH_IN_VBOXSVC),VBOX_WITH_VRDEAUTH_IN_VBOXSVC,) \ 894 895 $(if $(VBOX_WITH_LIBCURL), VBOX_WITH_PROXY_INFO) \ 895 $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) 896 $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \ 897 $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,) 896 898 ifdef VBOX_WITH_NETSHAPER 897 899 VBoxC_DEFS += VBOX_WITH_NETSHAPER -
trunk/src/VBox/Main/xml/Settings.cpp
r87241 r88345 4622 4622 else if (strIommuType == "AMD") 4623 4623 hw.iommuType = IommuType_AMD; 4624 else if (strIommuType == "Intel") 4625 hw.iommuType = IommuType_Intel; 4624 4626 else 4625 4627 throw ConfigFileError(this, … … 6129 6131 case IommuType_Automatic: pcszIommuType = "Automatic"; break; 6130 6132 case IommuType_AMD: pcszIommuType = "AMD"; break; 6133 case IommuType_Intel: pcszIommuType = "Intel"; break; 6131 6134 default: Assert(false); pcszIommuType = "None"; break; 6132 6135 }
Note:
See TracChangeset
for help on using the changeset viewer.