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'])
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'])
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)
def teardown(self): reattach_detachable(self.device, pci_reattach=False)
def teardown(self): reattach_detachable(self.device)
def teardown(self): if CAPABILITY_TO_XML_ATTR[self._deviceParams['capability']] != 'pci': reattach_detachable(self.device)