[libvirt] PATCH: Fix multiple bugs in RPC handling