[libvirt] [PATCH 06/12] qemu: monitor: Convert common code to a macro