mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
memory: change dirty setting APIs to take a size
Instead of each target 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:
parent
59abb06198
commit
fd4aa97903
12 changed files with 48 additions and 48 deletions
5
hw/qxl.c
5
hw/qxl.c
|
@ -343,10 +343,7 @@ static void init_qxl_ram(PCIQXLDevice *d)
|
|||
/* can be called from spice server thread context */
|
||||
static void qxl_set_dirty(MemoryRegion *mr, ram_addr_t addr, ram_addr_t end)
|
||||
{
|
||||
while (addr < end) {
|
||||
memory_region_set_dirty(mr, addr);
|
||||
addr += TARGET_PAGE_SIZE;
|
||||
}
|
||||
memory_region_set_dirty(mr, addr, end - addr);
|
||||
}
|
||||
|
||||
static void qxl_rom_set_dirty(PCIQXLDevice *qxl)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue