Francesco Romani has posted comments on this change.

Change subject: virt: allow a single dev from IOMMU group to be passed through
......................................................................


Patch Set 2: Code-Review+1

(2 comments)

looks good enough. I don't have a valid answer for the question inside, so I 
have no reasons to hold my +1

https://gerrit.ovirt.org/#/c/41508/2/vdsm/rpc/vdsmapi-schema.json
File vdsm/rpc/vdsmapi-schema.json:

Line 3430: # @VmHostDeviceSpecParams:
Line 3431: #
Line 3432: # Additional VM host device parameters.
Line 3433: #
Line 3434: # @iommuPlaceholder:       Flag identifying that the device should 
not be
not sure about the name (which isn't that bad after all)
but I don't have any suggestion :\
Line 3435: #                          passed through, but needs to be detached 
and
Line 3436: #                          reattached in order not to violate IOMMU 
group
Line 3437: #                          restrictions.
Line 3438: #


https://gerrit.ovirt.org/#/c/41508/2/vdsm/virt/vmdevices/hostdevice.py
File vdsm/virt/vmdevices/hostdevice.py:

Line 69:                 </hostdev>
Line 70:             </devices>
Line 71:             """
Line 72: 
Line 73:         if self.specParams.get('iommuPlaceholder', False):
> should tobool be used here even with 'bool' specified in api?
I'm torn. On one hand, I don't want to descend in cargo cult programming. On 
the other hand, I'm not sure the types expressed on the API are enforced 
anywhere. And we have plenty of possibly redundant tobool() anyway...
Line 74:             raise NotImplementedError('This device is IOMMU group 
placeholder')
Line 75: 
Line 76:         hostdev = self.createXmlElem(hwclass.HOSTDEV, None)
Line 77:         hostdev.setAttrs(managed='no', mode='subsystem',


-- 
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: 2
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

Reply via email to