ramdisk functions verified to work for both XEN and KVM