[libvirt] [PATCHv2 3/6] domain_conf: Add helpers to verify if device configuration is valid