diff options
| author | Anthony Liguori <aliguori@us.ibm.com> | 2012-11-28 13:19:06 -0600 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-11-28 13:19:06 -0600 |
| commit | 7e68494b0be4310c48996e9334373ef5771e3d15 (patch) | |
| tree | f9f24372cc2bd72f537142f143426765c9d794db /kvm-all.c | |
| parent | f3d44eb53c10b4dddfb3762c3e005be38adfc0ed (diff) | |
| parent | 6e72719e721a40fe1224701ca10edc1caf0cd708 (diff) | |
| download | focaccia-qemu-7e68494b0be4310c48996e9334373ef5771e3d15.tar.gz focaccia-qemu-7e68494b0be4310c48996e9334373ef5771e3d15.zip | |
Merge remote-tracking branch 'agraf/ppc-for-upstream-1.3' into staging
* agraf/ppc-for-upstream-1.3: fbdev: fix pixman compile on old pixman vl.c: Fix broken -usb option pseries: Fix bug in PCI MSI allocation kvm: fix incorrect length in a loop over kvm dirty pages map PPC: Fix missing TRACE exception hw/ide/macio: Fix segfault caused by NULL DMAContext* Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'kvm-all.c')
| -rw-r--r-- | kvm-all.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-all.c b/kvm-all.c index 3bc3347d07..8e9a8d8fd2 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -364,7 +364,7 @@ static int kvm_get_dirty_pages_log_range(MemoryRegionSection *section, unsigned int i, j; unsigned long page_number, c; hwaddr addr, addr1; - unsigned int len = ((section->size / TARGET_PAGE_SIZE) + HOST_LONG_BITS - 1) / HOST_LONG_BITS; + unsigned int len = ((section->size / getpagesize()) + HOST_LONG_BITS - 1) / HOST_LONG_BITS; unsigned long hpratio = getpagesize() / TARGET_PAGE_SIZE; /* |