Re: [Qemu-devel] [PATCH] linuxboot: compute initrd loading address

2014-10-07 Thread Paolo Bonzini
Il 07/10/2014 10:46, Michael S. Tsirkin ha scritto: > On Mon, Oct 06, 2014 at 04:49:57PM +0200, Paolo Bonzini wrote: >> Even though hw/i386/pc.c tries to compute a valid loading address for the >> initrd, close to the top of RAM, this does not take into account other >> data that is malloced into t

Re: [Qemu-devel] [PATCH] linuxboot: compute initrd loading address

2014-10-07 Thread Michael S. Tsirkin
On Mon, Oct 06, 2014 at 04:49:57PM +0200, Paolo Bonzini wrote: > Even though hw/i386/pc.c tries to compute a valid loading address for the > initrd, close to the top of RAM, this does not take into account other > data that is malloced into that memory by SeaBIOS. > > Luckily we can easily look at

[Qemu-devel] [PATCH] linuxboot: compute initrd loading address

2014-10-06 Thread Paolo Bonzini
Even though hw/i386/pc.c tries to compute a valid loading address for the initrd, close to the top of RAM, this does not take into account other data that is malloced into that memory by SeaBIOS. Luckily we can easily look at the memory map to find out how much memory is used up there. This patch