bitmap: a typo of the example in comment
PATCH 1/1 bitmap: a typo of the example in comment
* DirtyMemoryBlocks *blocks =
* atomic_rcu_read(&ram_list.dirty_memory[DIRTY_MEMORY_MIGRATION]);
blocks is a pointer, so here should be "->" instead of "."
Signed-off-by Chao Fan <[email protected]>
--- include/exec/ram_addr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/exec/ram_addr.h +1 -1
@@ -59,7 +59,7 @@ static inline void *ramblock_ptr(RAMBlock *block, ram_addr_t offset)* atomic_rcu_read(&ram_list.dirty_memory[DIRTY_MEMORY_MIGRATION]); * * ram_addr_t idx = (addr >> TARGET_PAGE_BITS) / DIRTY_MEMORY_BLOCK_SIZE; -* unsigned long *block = blocks.blocks[idx]; +* unsigned long *block = blocks->blocks[idx]; * ...access block bitmap... * * rcu_read_unlock();
Signature · 1 line
2.9.3
Michael Tokarev
AppliedQuoted 4 lines · Chao Fan
* DirtyMemoryBlocks *blocks =
*atomic_rcu_read(&ram_list.dirty_memory[DIRTY_MEMORY_MIGRATION]);blocks is a pointer, so here should be "->" instead of "."
Applied to -trivial, thank you!
/mjt
Quoted 7 lines · Michael Tokarev
Quoted 4 lines · Chao Fan
* DirtyMemoryBlocks *blocks =
*atomic_rcu_read(&ram_list.dirty_memory[DIRTY_MEMORY_MIGRATION]);blocks is a pointer, so here should be "->" instead of "."
Applied to -trivial, thank you!
After rework of this code by pbonzini it's not needed anymore.
Thanks!
/mjt