Revision 7b67b18a
b/hw/vhost.c | ||
---|---|---|
47 | 47 |
log = __sync_fetch_and_and(from, 0); |
48 | 48 |
while ((bit = sizeof(log) > sizeof(int) ? |
49 | 49 |
ffsll(log) : ffs(log))) { |
50 |
ram_addr_t ram_addr; |
|
50 | 51 |
bit -= 1; |
51 |
cpu_physical_memory_set_dirty(addr + bit * VHOST_LOG_PAGE); |
|
52 |
ram_addr = cpu_get_physical_page_desc(addr + bit * VHOST_LOG_PAGE); |
|
53 |
cpu_physical_memory_set_dirty(ram_addr); |
|
52 | 54 |
log &= ~(0x1ull << bit); |
53 | 55 |
} |
54 | 56 |
addr += VHOST_LOG_CHUNK; |
Also available in: Unified diff