Skip to content

KVM: s390: fix migration mode teardown in memslot handling

Gautam Gala kvm linux-s390 lkml 1 version Applied

Status from this message: Thanks applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: s390: reserve mmu cache before stopping migration modearch/s390/kvm/gmap/kvm_mmu.c+9 -60 replies
2/2KVM: s390: make kvm_s390_vm_stop_migration() voidarch/s390/kvm/arm64/arm.h arch/s390/kvm/gmap/kvm_mmu.c arch/s390/kvm/s390/s390.c +1 more+8 -101 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchChristian BorntraegerClaudio ImbrendaAndreas Grapentin
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH v1 0/2] KVM: s390: fix migration mode teardown in memslot handling

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(-)
Signature · 1 line
2.56.0