[libvirt] [PATCH 06/26] Add helper methods for determining what protocol layer is used