memory: Set DIRTY_MEMORY_MIGRATION when IOMMU is enabled
authorKirti Wankhede <kwankhede@nvidia.com>
Mon, 26 Oct 2020 09:36:20 +0000 (15:06 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Sun, 1 Nov 2020 19:30:50 +0000 (12:30 -0700)
commit74ee653799f93dfb119de9a248bdf0a85a68904f
tree03d1d5d0d8b88de305d5afdce6116fb840d311f9
parent3336d21710130a3d64c901aeae2dc66c364f93ad
memory: Set DIRTY_MEMORY_MIGRATION when IOMMU is enabled

mr->ram_block is NULL when mr->is_iommu is true, then fr.dirty_log_mask
wasn't set correctly due to which memory listener's log_sync doesn't
get called.
This patch returns log_mask with DIRTY_MEMORY_MIGRATION set when
IOMMU is enabled.

Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
Reviewed-by: Yan Zhao <yan.y.zhao@intel.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
softmmu/memory.c