-
- Downloads
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>
Showing
- arch/ia64/kvm/kvm-ia64.c 5 additions, 4 deletionsarch/ia64/kvm/kvm-ia64.c
- arch/powerpc/kvm/book3s.c 3 additions, 2 deletionsarch/powerpc/kvm/book3s.c
- arch/x86/kvm/x86.c 3 additions, 2 deletionsarch/x86/kvm/x86.c
- include/linux/kvm_host.h 5 additions, 0 deletionsinclude/linux/kvm_host.h
- virt/kvm/kvm_main.c 8 additions, 5 deletionsvirt/kvm/kvm_main.c
Loading
Please register or sign in to comment