Re: [PATCH v1 0/2] KVM: s390: fix migration mode teardown in memslot handling
From: Christian Borntraeger
Date: Mon Nov 23 2026 - 08:03:06 EST
Am 20.11.26 um 08:53 schrieb Gautam Gala:
Two small fixes for migration mode handling in
s390_kvm_mmu_prepare_memory_region().
Patch 1 fixes an error-path bug: if the mmu cache reservation fails
after migration mode was already stopped, the ioctl fails but the CMMA
state cleared by kvm_s390_vm_stop_migration() cannot be restored, so an
in-flight migration aborts over an unrelated allocation failure.
Reserving the cache first keeps both memslots and migration state
untouched on failure.
Patch 2 is a cleanup on top: kvm_s390_vm_stop_migration() cannot fail,
so it returns void and the always-false WARN() at its call site is
dropped.
Gautam Gala (2):
KVM: s390: reserve mmu cache before stopping migration mode
KVM: s390: make kvm_s390_vm_stop_migration() void
arch/s390/kvm/arm64/arm.h | 3 +--
arch/s390/kvm/gmap/kvm_mmu.c | 18 ++++++++++--------
arch/s390/kvm/s390/s390.c | 10 +++++-----
arch/s390/kvm/s390/s390.h | 2 +-
4 files changed, 17 insertions(+), 16 deletions(-)
Thanks applied.