diff options
author | Jagannathan Raman <jag.raman@oracle.com> | 2019-02-05 17:50:19 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-03-11 14:45:10 +0100 |
commit | 4f8260248c68e4599a5ce9d8d98ea9d8853f649b (patch) | |
tree | c2393f09f3d6303a8c7641ece5e0a439b009899b | |
parent | 79d8b1dc5b44d806d9700f2e8a8028075a8ff2b2 (diff) |
memory: Do not update coalesced IO range in the case of NOP
Do not add/del coalesced IO ranges in the case where the
same FlatRanges are present in both old and new FlatViews
Fixes: 3ac7d43a6fbb ("memory: update coalesced_range on transaction_commit")
Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Message-Id: <59572a7353830be4b7aa57d79ccb7ad6b72f0dda.1549406119.git.jag.raman@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | memory.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -932,9 +932,7 @@ static void address_space_update_topology_pass(AddressSpace *as, } else if (frold && frnew && flatrange_equal(frold, frnew)) { /* In both and unchanged (except logging may have changed) */ - if (!adding) { - flat_range_coalesced_io_del(frold, as); - } else { + if (adding) { MEMORY_LISTENER_UPDATE_REGION(frnew, as, Forward, region_nop); if (frnew->dirty_log_mask & ~frold->dirty_log_mask) { MEMORY_LISTENER_UPDATE_REGION(frnew, as, Forward, log_start, @@ -946,7 +944,6 @@ static void address_space_update_topology_pass(AddressSpace *as, frold->dirty_log_mask, frnew->dirty_log_mask); } - flat_range_coalesced_io_add(frnew, as); } ++iold; |