Dan Kenigsberg has posted comments on this change. Change subject: virt: allow a single dev from IOMMU group to be passed through ......................................................................
Patch Set 3: Code-Review-1 (1 comment) https://gerrit.ovirt.org/#/c/41508/3/vdsm/virt/vm.py File vdsm/virt/vm.py: Line 1535: for devType in self._devices: Line 1536: for dev in self._devices[devType]: Line 1537: try: Line 1538: deviceXML = dev.getXML().toxml(encoding='utf-8') Line 1539: except NotImplementedError: I find this abuse of NotImplementedError a bit disturbing. There are many devices and all kinds of getXML() implementations. Theoretically, one of the getXML implementations may ends up calling more functions and method, it can bump on a NotImplementedError from another source. Such exceptions must not be silently ignored. I think that we should be more careful, and use a specially-defined SkipDevice exception. Line 1540: continue Line 1541: Line 1542: if getattr(dev, "custom", {}): Line 1543: deviceXML = hooks.before_device_create( -- To view, visit https://gerrit.ovirt.org/41508 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ic266e74b5ffc4ae5c4627b004ade55a19c969511 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Martin Polednik <[email protected]> Gerrit-Reviewer: Dan Kenigsberg <[email protected]> Gerrit-Reviewer: Francesco Romani <[email protected]> Gerrit-Reviewer: Ido Barkan <[email protected]> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Martin Polednik <[email protected]> Gerrit-Reviewer: Michal Skrivanek <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
