[libvirt] [PATCH v3 2/3] qemu: add helper functions for diskchain checking