[libvirt] [PATCH] qemu: check the validity of a pointer