[libvirt] [PATCH 1/3] libvirt-domain: Introduce macro to save duplicated codes