Don't use a 32-bit bit type as offset argument for kvm dirty tracking
commit23f3424d11530432c502c105c895cd12f26f4b7a
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:19 +0000 (14 15:15 +0300)
tree592acaef23d5100aa3e5306970f49409906651f7
parent2ab033fca211b213418a7d9ac3c33b4cc7ef056d
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