Change in vdsm[master]: virt: devices: extract common parsing function