KVM: s390: fix migration mode teardown in memslot handling
Status from this message: Thanks applied.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | KVM: s390: reserve mmu cache before stopping migration modearch/ | +9 | 0 replies | |
| 2/2 | KVM: s390: make kvm_s390_vm_stop_migration() voidarch/ arch/ arch/ +1 more | +8 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Christian Borntraeger | Claudio Imbrenda | Andreas Grapentin |
|---|---|---|---|
| 1/2 | R-b | R-b | |
| 2/2 | R-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.
Cover letter [PATCH v1 0/2] KVM: s390: fix migration mode teardown in memslot handling
Two small fixes for migration mode handling ins390_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