kvm: we never have overlapping slots in kvm_set_phys_mem()
commitf357f564be0bd45245b3ccfbbe20ace08fe83ca8
authorDavid Hildenbrand <david@redhat.com>
Mon, 11 Sep 2017 17:49:31 +0000 (11 19:49 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 Sep 2017 12:09:33 +0000 (19 14:09 +0200)
treeeff69e932c7294f7dd1635e5705c9112377354e2
parent2747e7167214f23b255b64654815aeb3f74b1296
kvm: we never have overlapping slots in kvm_set_phys_mem()

The way flatview handles memory sections, we will never have overlapping
memory sections in kvm.

address_space_update_topology_pass() will make sure that we will only
get called for

a) an existing memory section for which we only update parameters
(log_start, log_stop).
b) an existing memory section we want to delete (region_del)
c) a brand new memory section we want to add (region_add)

We cannot have overlapping memory sections in kvm as we will first remove
the overlapping sections and then add the ones without conflicts.

Therefore we can remove the complexity for handling prefix and suffix
slots.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170911174933.20789-5-david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/kvm/kvm-all.c