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