[libvirt] [PATCH] Refactor loop device setup code in LXC