Re: [kvm-devel] [PATCH] account for start offset on largepage aligned-sized memslots

2008-04-04 Thread Avi Kivity
Marcelo Tosatti wrote: > Account for the case where memslot size is largepage aligned, but does not > start on largepage aligned offset. > > Otherwise it allocates one lpage_info struct less than what the memslot > spans, possibly resulting in memory corruption. > Applied, thanks. -- Any suf

[kvm-devel] [PATCH] account for start offset on largepage aligned-sized memslots

2008-04-04 Thread Marcelo Tosatti
Account for the case where memslot size is largepage aligned, but does not start on largepage aligned offset. Otherwise it allocates one lpage_info struct less than what the memslot spans, possibly resulting in memory corruption. Signed-off-by: Marcelo Tosatti <[EMAIL PROTECTED]> diff --git