aboutsummaryrefslogtreecommitdiff
path: root/scripts/qemu-gdb.py
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2012-11-19 15:40:47 +0000
committerAlexander Graf <agraf@suse.de>2012-11-26 19:53:26 +0100
commit752ced0488806830f18f96b60ae6f3d1fadfd089 (patch)
treee9c81f5a9780f4a207009a7fafa1d2b105c6fc2d /scripts/qemu-gdb.py
parentf0cc4aa8450376ca2aee3ebb09db71f9f2ff333b (diff)
downloadqemu-752ced0488806830f18f96b60ae6f3d1fadfd089.zip
qemu-752ced0488806830f18f96b60ae6f3d1fadfd089.tar.gz
qemu-752ced0488806830f18f96b60ae6f3d1fadfd089.tar.bz2
kvm: fix incorrect length in a loop over kvm dirty pages map
QEMU allocates a map enough for 4k pages. However the system page size can be 64K (for example on POWER) and the host kernel uses only a small part of it as one big stores a dirty flag for 16 pages 4K each, the hpratio variable stores this ratio and the kvm_get_dirty_pages_log_range function handles it correctly. However kvm_get_dirty_pages_log_range still goes beyond the data provided by the host kernel which is not correct. It does not cause errors at the moment as the whole bitmap is zeroed before doing KVM ioctl. The patch reduces number of iterations over the map. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'scripts/qemu-gdb.py')
0 files changed, 0 insertions, 0 deletions