summaryrefslogtreecommitdiffstats
path: root/migration/postcopy-ram.c
diff options
context:
space:
mode:
authorWei Yang2019-10-06 00:05:15 +0200
committerDr. David Alan Gilbert2019-10-11 15:31:08 +0200
commitda1725d3f9723668a61a3b83f1bf94ce14fc4e4b (patch)
tree85079afb1f681fcdf9d936654f7a6de7e8c1ab88 /migration/postcopy-ram.c
parentmigration/postcopy: map large zero page in postcopy_ram_incoming_setup() (diff)
downloadqemu-da1725d3f9723668a61a3b83f1bf94ce14fc4e4b.tar.gz
qemu-da1725d3f9723668a61a3b83f1bf94ce14fc4e4b.tar.xz
qemu-da1725d3f9723668a61a3b83f1bf94ce14fc4e4b.zip
migration/postcopy: fix typo in mark_postcopy_blocktime_begin's comment
Signed-off-by: Wei Yang <richardw.yang@linux.intel.com> Message-Id: <20191005220517.24029-3-richardw.yang@linux.intel.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/postcopy-ram.c')
-rw-r--r--migration/postcopy-ram.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/migration/postcopy-ram.c b/migration/postcopy-ram.c
index 08a3ed516e..3a72f7b4fe 100644
--- a/migration/postcopy-ram.c
+++ b/migration/postcopy-ram.c
@@ -768,9 +768,11 @@ static void mark_postcopy_blocktime_begin(uintptr_t addr, uint32_t ptid,
atomic_xchg(&dc->page_fault_vcpu_time[cpu], low_time_offset);
atomic_xchg(&dc->vcpu_addr[cpu], addr);
- /* check it here, not at the begining of the function,
- * due to, check could accur early than bitmap_set in
- * qemu_ufd_copy_ioctl */
+ /*
+ * check it here, not at the beginning of the function,
+ * due to, check could occur early than bitmap_set in
+ * qemu_ufd_copy_ioctl
+ */
already_received = ramblock_recv_bitmap_test(rb, (void *)addr);
if (already_received) {
atomic_xchg(&dc->vcpu_addr[cpu], 0);