[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 88c73d: memory: fix usage of find_next_bit an

From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 88c73d: memory: fix usage of find_next_bit and find_next_z...
Date: Thu, 11 Feb 2016 03:00:03 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 88c73d16ad1b6c22a2ab082064d0d521f756296a
  Author: Paolo Bonzini <address@hidden>
  Date:   2016-02-10 (Wed, 10 Feb 2016)

  Changed paths:
    M include/exec/ram_addr.h

  Log Message:
  memory: fix usage of find_next_bit and find_next_zero_bit

The last two arguments to these functions are the last and first bit to
check relative to the base.  The code was using incorrectly the first
bit and the number of bits.  Fix this in cpu_physical_memory_get_dirty
and cpu_physical_memory_all_dirty.  This requires a few changes in the
iteration; change the code in cpu_physical_memory_set_dirty_range to

Fixes: 5b82b70
Cc: Stefan Hajnoczi <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Tested-by: Leon Alrae <address@hidden>
Tested-by: Thomas Huth <address@hidden>
Message-id: address@hidden
Signed-off-by: Peter Maydell <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]