diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2013-06-27 08:48:38 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-06-27 08:48:38 -0500 |
commit | c394ace828a559be13ec0bde15b476970f186dad (patch) | |
tree | e15ec28f02b7d995171274aa47703244880dd827 /exec.c | |
parent | 3e5087329489e0beceecf3426f1216619821937f (diff) | |
parent | 60d9222c8f50c3e5dd3df9ee84ddd1d1c4b35389 (diff) | |
download | hqemu-c394ace828a559be13ec0bde15b476970f186dad.zip hqemu-c394ace828a559be13ec0bde15b476970f186dad.tar.gz |
Merge remote-tracking branch 'quintela/migration.next' into staging
# By Michael R. Hines (9) and others
# Via Juan Quintela
* quintela/migration.next:
rdma: introduce capability x-rdma-pin-all
rdma: new QEMUFileOps hooks
rdma: introduce qemu_ram_foreach_block()
rdma: export qemu_fflush()
rdma: introduce qemu_file_mode_is_not_valid()
rdma: export throughput w/ MigrationStats QMP
rdma: export yield_until_fd_readable()
rdma: introduce qemu_update_position()
rdma: add documentation
migration: do not overwrite zero pages
Revert "migration: do not sent zero pages in bulk stage"
arch_init/ram_load: add error message for block length mismatch
Message-id: 1372329455-5995-1-git-send-email-quintela@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -2630,3 +2630,12 @@ bool cpu_physical_memory_is_io(hwaddr phys_addr) memory_region_is_romd(mr)); } #endif + +void qemu_ram_foreach_block(RAMBlockIterFunc func, void *opaque) +{ + RAMBlock *block; + + QTAILQ_FOREACH(block, &ram_list.blocks, next) { + func(block->host, block->offset, block->length, opaque); + } +} |