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