kvm: region_add and region_del is not called on updates
commit90ed4bcc3a15749c3c341e2a684f8f84e2251b67
authorDavid Hildenbrand <david@redhat.com>
Mon, 16 Oct 2017 14:43:00 +0000 (16 16:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Oct 2017 08:14:52 +0000 (18 10:14 +0200)
treea599c0ff84597471617548553ee0b0b9ecad4e1f
parent1c4fdabaf734f6519fdef670df14285e491ef52c
kvm: region_add and region_del is not called on updates

Attributes are not updated via region_add()/region_del(). Attribute changes
lead to a delete first, followed by a new add.

If this would ever not be the case, we would get an error when trying to
register the new slot.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20171016144302.24284-6-david@redhat.com>
Tested-by: Joe Clifford <joeclifford@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/kvm/kvm-all.c