KVM: s390: fix memory slot handling for KVM_SET_USER_MEMORY_REGION
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 24 May 2019 14:06:23 +0000 (16:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jun 2019 06:17:20 +0000 (08:17 +0200)
commitc867a67ca6473235b7e114ff2367f69d5c3a62bb
tree9f423d8343189370609e77cad162f21d926acfc1
parent438f4dc0a11995bf790c7c00fec9fd9f06cc33f0
KVM: s390: fix memory slot handling for KVM_SET_USER_MEMORY_REGION

[ Upstream commit 19ec166c3f39fe1d3789888a74cc95544ac266d4 ]

kselftests exposed a problem in the s390 handling for memory slots.
Right now we only do proper memory slot handling for creation of new
memory slots. Neither MOVE, nor DELETION are handled properly. Let us
implement those.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/kvm/kvm-s390.c