[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RfC PATCH 2/4] memory: add support getting and using a
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [RfC PATCH 2/4] memory: add support getting and using a dirty bitmap copy. |
Date: |
Thu, 30 Mar 2017 17:48:50 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 30/03/2017 08:55, Gerd Hoffmann wrote:
> + bitmap_copy(copy->dirty + dest,
> + blocks->blocks[idx] + (offset >> BITS_PER_LEVEL),
> + num);
> + bitmap_zero(blocks->blocks[idx] + (offset >> BITS_PER_LEVEL),
> + num);
> +
This needs to access the bitmap atomically, so you'll need a new function
bool bitmap_copy_and_clear_atomic(unsigned long *dest,
unsigned long *src, long nr)
Paolo
- [Qemu-devel] [RfC PATCH 0/4] make display updates thread safe., Gerd Hoffmann, 2017/03/30
- [Qemu-devel] [RfC PATCH 1/4] vga: add vga_scanline_invalidated helper, Gerd Hoffmann, 2017/03/30
- [Qemu-devel] [RfC PATCH 4/4] [testing] console: remove do_safe_dpy_refresh, Gerd Hoffmann, 2017/03/30
- [Qemu-devel] [RfC PATCH 3/4] vga: make display updates thread safe., Gerd Hoffmann, 2017/03/30
- [Qemu-devel] [RfC PATCH 2/4] memory: add support getting and using a dirty bitmap copy., Gerd Hoffmann, 2017/03/30
- Re: [Qemu-devel] [RfC PATCH 0/4] make display updates thread safe., Mark Cave-Ayland, 2017/03/30