[SeaBIOS] [PATCH 3/3] ahci: alloc structs in high memory, simplify realloc

Kevin O'Connor kevin at koconnor.net
Sat Nov 30 20:33:26 CET 2013


On Fri, Nov 29, 2013 at 09:29:21AM +0100, Gerd Hoffmann wrote:
>   Hi,
> 
> > Ideally, one wouldn't allocate in "high" ram and then go on to free
> > it.  (Memory fragmentation due to malloc/free could chew up some guest
> > ram.)  So, I'm not sure this is an improvement.
> 
> So, we can keep the realloc but move tmp -> high instead of tmp -> low.

If you want.  This does mean that 1Meg guests wont be able to use
AHCI.  Also, high ram could be used by guests while low ram
(e-segment) doesn't compete for guest ram.  Anyway, it's up to you.

-Kevin



More information about the SeaBIOS mailing list