VirtualBox

Ignore:
Timestamp:
Jul 10, 2024 9:39:16 AM (11 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163901
Message:

Main,FE/VBoxManage: Add method to query which execution engines supported by a build are actually supported by the host. Primarily for querying whether the native API is accessible on a host

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vboxtestvms.py

    r103702 r105254  
    18971897
    18981898            try:
    1899                 aenmExecEngines = oTestDrv.oVBox.systemProperties.getExecutionEnginesForVmCpuArchitecture(enmCpuArch);
     1899                #
     1900                # Get the list of theoretically supported execution engines and then filter
     1901                # out the ones the host doesn't support.
     1902                #
     1903                aenmExecEnginesTmp = oTestDrv.oVBox.systemProperties.getExecutionEnginesForVmCpuArchitecture(enmCpuArch);
     1904
     1905                aenmExecEngines = [];
     1906                for enmExecEngine in aenmExecEnginesTmp:
     1907                    if oTestDrv.oVBox.host.isExecutionEngineSupported(enmCpuArch, enmExecEngine):
     1908                        aenmExecEngines.append(enmExecEngine);
    19001909
    19011910                if 'raw' in asVirtModesWanted and not oTestDrv.hasRawModeSupport():
     
    19121921                    asVirtModesWanted.remove('hwvirt-np');
    19131922
    1914                 if 'native-api' in asVirtModesWanted and not vboxcon.VMExecutionEngine_NativeApi in aenmExecEngines:
     1923                if 'native-api' in asVirtModesWanted and (   not vboxcon.VMExecutionEngine_NativeApi in aenmExecEngines \
     1924                                                          or not oTestDrv.oVBox.host.isExecutionEngineSupported(enmCpuArch, vboxcon.VMExecutionEngine_NativeApi)):
    19151925                    reporter.log('Native API (aka NEM) virtualization is not available in this build (or perhaps for this host) and VM CPU architecture, skipping it.');
    19161926                    asVirtModesWanted.remove('native-api');
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