mirror of
https://github.com/mii443/qemu.git
synced 2025-09-03 15:49:30 +00:00
memory: change dirty getting API to take a size
Instead of each device knowing or guessing the guest page size, just pass the desired size of dirtied memory area. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
@ -87,15 +87,8 @@ void framebuffer_update_display(
|
||||
dest += i * dest_row_pitch;
|
||||
|
||||
for (; i < rows; i++) {
|
||||
target_phys_addr_t dirty_offset;
|
||||
dirty = 0;
|
||||
dirty_offset = 0;
|
||||
while (addr + dirty_offset < TARGET_PAGE_ALIGN(addr + src_width)) {
|
||||
dirty |= memory_region_get_dirty(mem, addr + dirty_offset,
|
||||
dirty = memory_region_get_dirty(mem, addr, addr + src_width,
|
||||
DIRTY_MEMORY_VGA);
|
||||
dirty_offset += TARGET_PAGE_SIZE;
|
||||
}
|
||||
|
||||
if (dirty || invalidate) {
|
||||
fn(opaque, dest, src, cols, dest_col_pitch);
|
||||
if (first == -1)
|
||||
|
Reference in New Issue
Block a user