]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Wed, 19 Jun 2019 06:18:05 +0000 (08:18 +0200)
commitf69f5679ff8fa1441754ea5f5b863c1a38bd5e93
treec9a681715d8e34f82b1ce9185fcd43261f9d6fcf
parent9d8f338c92cc37de3242149336cc00f1da327b57
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