コード例 #1
0
    def teardown(self):
        if self.is_hostdevice:
            self.log.info('Reattaching device %s to host.' % self.hostdev)
            try:
                # TODO: avoid reattach when Engine can tell free VFs otherwise
                reattach_detachable(self.hostdev)
            except NoIOMMUSupportException:
                self.log.exception('Could not reattach device %s back to host '
                                   'due to missing IOMMU support.',
                                   self.hostdev)

            device_params = get_device_params(self.hostdev)
            supervdsm.getProxy().rmAppropriateIommuGroup(
                device_params['iommu_group'])
コード例 #2
0
ファイル: network.py プロジェクト: bronhaim/vdsm
    def teardown(self):
        if self.is_hostdevice:
            self.log.info('Reattaching device %s to host.' % self.hostdev)
            try:
                # TODO: avoid reattach when Engine can tell free VFs otherwise
                reattach_detachable(self.hostdev)
            except NoIOMMUSupportException:
                self.log.exception(
                    'Could not reattach device %s back to host '
                    'due to missing IOMMU support.', self.hostdev)

            device_params = get_device_params(self.hostdev)
            supervdsm.getProxy().rmAppropriateIommuGroup(
                device_params['iommu_group'])
コード例 #3
0
    def teardown(self):
        if self.is_hostdevice:
            self.log.info('Reattaching device %s to host.' % self.hostdev)
            try:
                # TODO: avoid reattach when Engine can tell free VFs otherwise
                reattach_detachable(self.hostdev)
            except NoIOMMUSupportException:
                self.log.exception(
                    'Could not reattach device %s back to host '
                    'due to missing IOMMU support.', self.hostdev)

            supervdsm.getProxy().rmAppropriateIommuGroup(
                self._device_params['iommu_group'])

        if self._is_vhostuser:
            bridge_info = supervdsm.getProxy().ovs_bridge(self.network)
            if bridge_info:
                port = self._get_vhostuser_port_name()
                supervdsm.getProxy().remove_ovs_port(bridge_info['name'], port)
コード例 #4
0
 def teardown(self):
     reattach_detachable(self.device, pci_reattach=False)
コード例 #5
0
 def teardown(self):
     reattach_detachable(self.device)
コード例 #6
0
 def teardown(self):
     if CAPABILITY_TO_XML_ATTR[self._deviceParams['capability']] != 'pci':
         reattach_detachable(self.device)
コード例 #7
0
 def teardown(self):
     reattach_detachable(self.device)
コード例 #8
0
ファイル: hostdevice.py プロジェクト: EdDev/vdsm
 def teardown(self):
     reattach_detachable(self.device, pci_reattach=False)