Example #1
0
def iommu_cmd(argv):
    """
    >>> chipsec_util iommu list
    >>> chipsec_util iommu config [iommu_engine]
    >>> chipsec_util iommu status [iommu_engine]
    >>> chipsec_util iommu enable|disable <iommu_engine>

    Examples:

    >>> chipsec_util iommu list
    >>> chipsec_util iommu config VTD
    >>> chipsec_util iommu status GFXVTD
    >>> chipsec_util iommu enable VTD
    """
    if len(argv) < 3:
        print iommu_cmd.__doc__
        return
    op = argv[2]
    t = time.time()
    
    try:
        _iommu = iommu( chipsec_util._cs )
    except IOMMUError, msg:
        print msg
        return
Example #2
0
    def run(self):
        if len(self.argv) < 3:
            print IOMMUCommand.__doc__
            return
        op = self.argv[2]
        t = time.time()

        try:
            _iommu = iommu(self.cs)
        except IOMMUError, msg:
            print msg
            return
Example #3
0
 def run(self):
     if len(self.argv) < 3:
         print IOMMUCommand.__doc__
         return
     op = self.argv[2]
     t = time.time()
     
     try:
         _iommu = iommu( self.cs )
     except IOMMUError, msg:
         print msg
         return