Martin Polednik has uploaded a new change for review. Change subject: hostdev: don't implicitly reattach devices ......................................................................
hostdev: don't implicitly reattach devices Change-Id: I1136292cb7e9d13a8202b1f5162299d2155e8036 Signed-off-by: Martin Polednik <[email protected]> --- M vdsm/virt/vm.py 1 file changed, 0 insertions(+), 11 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/36/54936/1 diff --git a/vdsm/virt/vm.py b/vdsm/virt/vm.py index 566f48f..093a660 100644 --- a/vdsm/virt/vm.py +++ b/vdsm/virt/vm.py @@ -1258,16 +1258,6 @@ cleanup_guest_socket(self._guestSocketFile) - def _reattachHostDevices(self): - # reattach host devices - for dev_name, _ in self._host_devices(): - self.log.debug('Reattaching device %s to host.' % dev_name) - try: - hostdev.reattach_detachable(dev_name) - except hostdev.NoIOMMUSupportException: - self.log.exception('Could not reattach device %s back to host ' - 'due to missing IOMMU support.') - def _host_devices(self): for device in self._devices[hwclass.HOSTDEV][:]: yield device.device, device @@ -1691,7 +1681,6 @@ self._cleanupFloppy() self._cleanupGuestAgent() cleanup_guest_socket(self._qemuguestSocketFile) - self._reattachHostDevices() self._cleanupStatsCache() numaUtils.invalidateNumaCache(self) for con in self._devices[hwclass.CONSOLE]: -- To view, visit https://gerrit.ovirt.org/54936 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1136292cb7e9d13a8202b1f5162299d2155e8036 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Martin Polednik <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
