VirtualBox

Ignore:
Timestamp:
Apr 1, 2021 1:12:28 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143575
Message:

Intel IOMMU: bugref:9967 Main, VBoxManage: Handle Intel IOMMU in places where it's missing. Without VBOX_WITH_IOMMU_INTEL define, it's considered not implemented.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r88079 r88345  
    236236#endif
    237237    MODIFYVM_CHIPSET,
    238 #ifdef VBOX_WITH_IOMMU_AMD
     238#if defined(VBOX_WITH_IOMMU_AMD) || defined(VBOX_WITH_IOMMU_INTEL)
    239239    MODIFYVM_IOMMU,
    240240#endif
     
    412412    { "--iocachesize",              MODIFYVM_IOCACHESIZE,               RTGETOPT_REQ_UINT32 },
    413413    { "--chipset",                  MODIFYVM_CHIPSET,                   RTGETOPT_REQ_STRING },
    414 #ifdef VBOX_WITH_IOMMU_AMD
     414#if defined(VBOX_WITH_IOMMU_AMD) || defined(VBOX_WITH_IOMMU_INTEL)
    415415    { "--iommu",                    MODIFYVM_IOMMU,                     RTGETOPT_REQ_STRING },
    416416#endif
     
    30133013                break;
    30143014            }
    3015 #ifdef VBOX_WITH_IOMMU_AMD
     3015#if defined(VBOX_WITH_IOMMU_AMD) || defined(VBOX_WITH_IOMMU_INTEL)
    30163016            case MODIFYVM_IOMMU:
    30173017            {
     
    30213021                else if (!RTStrICmp(ValueUnion.psz, "amd"))
    30223022                    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));
    30243025                else if (!RTStrICmp(ValueUnion.psz, "automatic"))
    30253026                {
    30263027                    CHECK_ERROR(sessionMachine, COMSETTER(IommuType)(IommuType_Automatic));
     3028#ifndef VBOX_WITH_IOMMU_INTEL
    30273029                    RTStrmPrintf(g_pStdErr,
    30283030                                 "Warning: On Intel hosts, 'automatic' will not enable an IOMMU since the Intel IOMMU device is not supported yet.\n");
     3031#endif
    30293032                }
    30303033                else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette