Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Christian Borntraeger <borntraeger@linux.ibm.com>
To: Gautam Gala <ggala@linux.ibm.com>, kvm@vger.kernel.org
Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org,
	Janosch Frank <frankja@linux.ibm.com>,
	Claudio Imbrenda <imbrenda@linux.ibm.com>,
	David Hildenbrand <david@kernel.org>,
	Steffen Eiden <seiden@linux.ibm.com>,
	Andreas Grapentin <gra@linux.ibm.com>,
	Marc Zyngier <maz@kernel.org>, Heiko Carstens <hca@linux.ibm.com>,
	Vasily Gorbik <gor@linux.ibm.com>,
	Alexander Gordeev <agordeev@linux.ibm.com>,
	Sven Schnelle <svens@linux.ibm.com>
Subject: Re: [PATCH v1 0/2] KVM: s390: fix migration mode teardown in memslot handling
Date: Mon, 23 Nov 2026 14:02:46 +0100	[thread overview]
Message-ID: <88ed21d7-deee-4be7-ae83-a3eec9da3e6e@linux.ibm.com> (raw)
In-Reply-To: <20261120075345.116521-1-ggala@linux.ibm.com>

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. 


      parent reply	other threads:[~2026-11-23 13:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20  7:53 [PATCH v1 0/2] KVM: s390: fix migration mode teardown in memslot handling Gautam Gala
2026-11-20  7:53 ` [PATCH v1 1/2] KVM: s390: reserve mmu cache before stopping migration mode Gautam Gala
2026-11-20  7:53 ` [PATCH v1 2/2] KVM: s390: make kvm_s390_vm_stop_migration() void Gautam Gala
2026-11-20 10:30   ` Andreas Grapentin
2026-11-23 13:02 ` Christian Borntraeger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=88ed21d7-deee-4be7-ae83-a3eec9da3e6e@linux.ibm.com \
    --to=borntraeger@linux.ibm.com \
    --cc=agordeev@linux.ibm.com \
    --cc=david@kernel.org \
    --cc=frankja@linux.ibm.com \
    --cc=ggala@linux.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=gra@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=maz@kernel.org \
    --cc=seiden@linux.ibm.com \
    --cc=svens@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox