[Libvir] [PATCH] Refactor xend_internal.c block device detection