memory: Don't set migration bitmap when without migration
commitae7a2bca8a51f4a61704dc87137bd22ea555cc66
authorPeter Xu <peterx@redhat.com>
Mon, 3 Jun 2019 06:50:48 +0000 (3 14:50 +0800)
committerJuan Quintela <quintela@redhat.com>
Mon, 15 Jul 2019 13:39:02 +0000 (15 15:39 +0200)
treeae1d8a2e3ce788e7397e0ff95c49480addf0f695
parent267691b65cf7167881609dde1e50a4aafd86af08
memory: Don't set migration bitmap when without migration

Similar to 9460dee4b2 ("memory: do not touch code dirty bitmap unless
TCG is enabled", 2015-06-05) but for the migration bitmap - we can
skip the MIGRATION bitmap update if migration not enabled.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20190603065056.25211-4-peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/exec/memory.h
include/exec/ram_addr.h
memory.c