From: Takuya Yoshikawa Date: Mon, 12 Apr 2010 10:35:35 +0000 (+0900) Subject: KVM: fix the handling of dirty bitmaps to avoid overflows X-Git-Tag: v2.6.34-rc6~78^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87bf6e7de1134f48681fd2ce4b7c1ec45458cb6d;p=pandora-kernel.git KVM: fix the handling of dirty bitmaps to avoid overflows Int is not long enough to store the size of a dirty bitmap. This patch fixes this problem with the introduction of a wrapper function to calculate the sizes of dirty bitmaps. Note: in mark_page_dirty(), we have to consider the fact that __set_bit() takes the offset as int, not long. Signed-off-by: Takuya Yoshikawa Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed