VirtualBox

Ignore:
Timestamp:
Feb 1, 2024 10:23:11 AM (13 months ago)
Author:
vboxsync
Message:

ValidationKit/{common,testboxscript}: Add a has native API support flag when signing on indicating whether the testbox supports testing through NEM (Hyper-V on Windows, KVM on Linux and Hypervisor.framework on macOS). This is the first part not touching the actual testmanager, bugref:10592

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testboxscript/testboxscript_real.py

    r98651 r103156  
    184184            constants.tbreq.SIGNON_PARAM_HAS_64_BIT_GUEST: { self.VALUE: self._can64BitGuest(),        self.FN: None },
    185185            constants.tbreq.SIGNON_PARAM_HAS_IOMMU:        { self.VALUE: self._hasHostIoMmu(),         self.FN: None },
     186            constants.tbreq.SIGNON_PARAM_HAS_NATIVE_API:   { self.VALUE: self._hasHostNativeApi(),     self.FN: None },
    186187            #constants.tbreq.SIGNON_PARAM_WITH_RAW_MODE:    { self.VALUE: self._withRawModeSupport(),   self.FN: None },
    187188            constants.tbreq.SIGNON_PARAM_SCRIPT_REV:       { self.VALUE: self._getScriptRev(),         self.FN: None },
     
    559560            self._oOptions.fHasIoMmu = False;
    560561        return self._oOptions.fHasIoMmu;
     562
     563    def _hasHostNativeApi(self):
     564        """
     565        Check if the host supports the native API/NEM mode.
     566        """
     567        if self._oOptions.fHasNativeApi is None:
     568            self._oOptions.fHasNativeApi = self._getHelperOutput('nativeapi');
     569        return self._oOptions.fHasNativeApi;
    561570
    562571    def _withRawModeSupport(self):
     
    10051014                          dest="fCan64BitGuest", action="store_false", default=None,
    10061015                          help="Host cannot execute 64-bit guests");
     1016        parser.add_option("--native-api",
     1017                          dest="fHasNativeApi", action="store_true", default=None,
     1018                          help="Native API virtualization is available");
     1019        parser.add_option("--no-native-api",
     1020                          dest="fHasNativeApi", action="store_false", default=None,
     1021                          help="Native API virtualization is not available");
    10071022        parser.add_option("--io-mmu",
    10081023                          dest="fHasIoMmu", action="store_true", default=None,
Note: See TracChangeset for help on using the changeset viewer.

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