[libvirt PATCH v2 2/3] nodedev: refactor virMediatedDeviceGetIOMMUGroupNum()

Erik Skultety eskultet at redhat.com
Thu Apr 15 06:18:54 UTC 2021


On Wed, Apr 14, 2021 at 03:54:48PM -0500, Jonathon Jongsma wrote:
> Currently virMediatedDeviceGetIOMMUGroupDev() looks up the iommu group
> number and uses that to construct a path to the iommu group device.
> virMediatedDeviceGetIOMMUGroupNum() then uses that device path and takes
> the basename to get the group number. That's unnecessary extra string
> manipulation for *GroupNum(). Reverse the implementations and make
> *GroupDev() call *GroupNum().
> 
> Signed-off-by: Jonathon Jongsma <jjongsma at redhat.com>
> Reviewed-by: Laine Stump <laine at redhat.com>
> ---
Reviewed-by: Erik Skultety <eskultet at redhat.com>




More information about the libvir-list mailing list