[Qemu-devel] Re: [kvm-devel] [PATCH] Memory Based Block Device

2007-07-25 Thread Anthony Liguori
Evan Felix wrote: The Current way to boot a kernel and initrd is to use an option ROM, Currently, the block infrastructure has this nasty hack that allows you to set an override of the first sector of the disk (which is the boot sector). It has the appropriate magic to do this in such a w

[Qemu-devel] Re: [kvm-devel] [PATCH] Memory Based Block Device

2007-07-25 Thread Evan Felix
The Current way to boot a kernel and initrd is to use an option ROM, bt it still needs a boot sector to hand to the bios so that it knows where the code got loaded into ram. This patch makes a fake one just before its needed. I never though of the /dev/null trick. :) Evan On 7/25/07, Anthony

[Qemu-devel] Re: [kvm-devel] [PATCH] Memory Based Block Device

2007-07-25 Thread Anthony Liguori
Evan Felix wrote: Folks here is a patch i've made for qemu that adds a memory based block device, it utilizes memory on the Host side to emulate a block device. I often use -hda /dev/null for -kernel/-append. If you really want to implement a "proper" solution for -kernel/-append, I think