diff options
author | Avi Kivity <avi@redhat.com> | 2009-04-24 16:05:14 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-05-08 15:44:59 -0700 |
commit | 9de29923f93cc3d56c76130f729ddaa5c48ea4b7 (patch) | |
tree | 1ad70997474dc240ed4b400776994e01ba6b329d /arch | |
parent | 64e1b00c974ddeae6a60ebb02e1c487371905cea (diff) |
KVM: MMU: Fix off-by-one calculating large page count
upstream commit: 99894a799f09cf9e28296bb16e75bd5830fd2c4e
The large page initialization code concludes there are two large pages spanned
by a slot covering 1 (small) page starting at gfn 1. This is incorrect, and
also results in incorrect write_count initialization in some cases (base = 1,
npages = 513 for example).
Cc: stable@kernel.org
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions