commit | 87bf6e7de1134f48681fd2ce4b7c1ec45458cb6d | [log] [tgz] |
---|---|---|
author | Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp> | Mon Apr 12 19:35:35 2010 +0900 |
committer | Avi Kivity <avi@redhat.com> | Tue Apr 20 13:06:55 2010 +0300 |
tree | ae8ce63cecab98c036c0d76422de42cf78e042f4 | |
parent | 77662e0028c7c63e34257fda03ff9625c59d939d [diff] |
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 <yoshikawa.takuya@oss.ntt.co.jp> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>