commit | 3743888cafbada95d9907a1b5fb001993b1ee03e | [log] [tgz] |
---|---|---|
author | Marcelo Tosatti <mtosatti@redhat.com> | Fri Apr 04 17:21:22 2008 -0300 |
committer | Avi Kivity <avi@qumranet.com> | Sat Apr 05 00:23:49 2008 +0300 |
tree | 247791ceee68be9f534c86e0ba81012f7ab8f7d6 | |
parent | fafac27bad9f4d8fd9f0b50e41c5591eb0805cd7 [diff] |
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>