[libvirt] QEMU json related fixes