From: Avi Kivity Date: Sun, 29 Mar 2009 13:31:25 +0000 (+0300) Subject: KVM: MMU: Fix off-by-one calculating large page count X-Git-Tag: v2.6.30-rc4~59^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99894a799f09cf9e28296bb16e75bd5830fd2c4e;p=pandora-kernel.git KVM: MMU: Fix off-by-one calculating large page count 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 --- Reading git-diff-tree failed