KVM: Sixty-fifth public release
KVM: MMU: account for start offset on largepage aligned-sized memslots

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 <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
1 file changed