Example #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'])
Example #2
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'])
Example #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)
Example #4
0
 def teardown(self):
     reattach_detachable(self.device, pci_reattach=False)
Example #5
0
 def teardown(self):
     reattach_detachable(self.device)
Example #6
0
 def teardown(self):
     if CAPABILITY_TO_XML_ATTR[self._deviceParams['capability']] != 'pci':
         reattach_detachable(self.device)
Example #7
0
 def teardown(self):
     reattach_detachable(self.device)
Example #8
0
 def teardown(self):
     reattach_detachable(self.device, pci_reattach=False)