Don't use a 32-bit bit type as offset argument for kvm dirty tracking
commit457043d04592c150db01c3cd5e1c73b2ac830ec1
authorGlauber Costa <glommer@redhat.com>
Wed, 13 May 2009 19:21:14 +0000 (13 15:21 -0400)
committerAvi Kivity <avi@redhat.com>
Thu, 14 May 2009 12:15:05 +0000 (14 15:15 +0300)
tree9e7e357193ac5e9fefcf222af8af23abc14ffe33
parentc66a4e995e28fc37a760cf1c42a7c7ac35fde9d8
Don't use a 32-bit bit type as offset argument for kvm dirty tracking

In the call path of kvm_get_dirty_pages_log_range(),
its caller kvm_get_dirty_bitmap_cb() passes the
target_phys_addr_t both as start_addr and the offset.
So, using int will make dirty tracking over 4G fail
completely.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu-kvm.c