VirtualBox

Ignore:
Timestamp:
Oct 22, 2019 7:24:10 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134153
Message:

ValidationKit/testdriver: Add hasHostNestedHwVirt and allow testing nested hardware-virtualization smoketest based on it (previously was based on isHostCpuAmd).

Location:
trunk/src/VBox/ValidationKit/testdriver
Files:
2 edited

Legend:

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

    r80783 r81435  
    31723172           and self.hasHostHwVirt(fQuiet);
    31733173
     3174    def hasHostNestedHwVirt(self, fQuiet = False):
     3175       """
     3176       Checks if nested hardware-assisted virtualization is supported by the host.
     3177
     3178       Returns True / False.
     3179       Raises exception on environment / host mismatch.
     3180       """
     3181       return self._hasHostCpuFeature('TESTBOX_HAS_NESTED_HWVIRT', 'ProcessorFeature_NestedHWVirt', 6.0, fQuiet) \
     3182          and self.hasHostHwVirt(fQuiet);
     3183
    31743184    def hasHostLongMode(self, fQuiet = False):
    31753185        """
  • trunk/src/VBox/ValidationKit/testdriver/vboxtestvms.py

    r79400 r81435  
    11181118        returns True if it should be skipped, False if not.
    11191119        """
    1120         if self.fNstHwVirt and not oTestDrv.isHostCpuAmd():
    1121             reporter.log('Ignoring VM %s (Nested hardware-virtualization only supported on AMD CPUs).' % (self.sVmName,));
     1120        if self.fNstHwVirt and not oTestDrv.hasHostNestedHwVirt():
     1121            reporter.log('Ignoring VM %s (Nested hardware-virtualization not support on this host).' % (self.sVmName,));
    11221122            return True;
    11231123        return False;
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