[libvirt] [PATCH v3 2/4] qemu: Create common code for JSON "query-block" call