[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5b671c7c-dcc8-9c33-6eb5-58c5921708a1@linux.ibm.com>
Date: Thu, 17 Aug 2023 12:59:54 +0200
From: Michael Mueller <mimu@...ux.ibm.com>
To: Steffen Eiden <seiden@...ux.ibm.com>, linux-kernel@...r.kernel.org,
linux-s390@...r.kernel.org, kvm@...r.kernel.org
Cc: Janosch Frank <frankja@...ux.ibm.com>,
Claudio Imbrenda <imbrenda@...ux.ibm.com>,
David Hildenbrand <david@...hat.com>,
Michael Mueller <mimu@...ux.vnet.ibm.com>,
Marc Hartmayer <mhartmay@...ux.ibm.com>,
Christian Borntraeger <borntraeger@...ux.ibm.com>,
Viktor Mihajlovski <mihajlov@...ux.ibm.com>
Subject: Re: [PATCH v4 1/4] KVM: s390: pv: relax WARN_ONCE condition for
destroy fast
On 15.08.23 17:14, Steffen Eiden wrote:
> From: Viktor Mihajlovski <mihajlov@...ux.ibm.com>
>
> Destroy configuration fast may return with RC 0x104 if there
> are still bound APQNs in the configuration. The final cleanup
> will occur with the standard destroy configuration UVC as
> at this point in time all APQNs have been reset and thus
> unbound. Therefore, don't warn if RC 0x104 is reported.
>
> Signed-off-by: Viktor Mihajlovski <mihajlov@...ux.ibm.com>
> Reviewed-by: Claudio Imbrenda <imbrenda@...ux.ibm.com>
> Reviewed-by: Janosch Frank <frankja@...ux.ibm.com>
> Reviewed-by: Steffen Eiden <seiden@...ux.ibm.com>
Reviewed-by: Michael Mueller <mimu@...ux.ibm.com>
> ---
> arch/s390/kvm/pv.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/s390/kvm/pv.c b/arch/s390/kvm/pv.c
> index 8d3f39a8a11e..8570ee324607 100644
> --- a/arch/s390/kvm/pv.c
> +++ b/arch/s390/kvm/pv.c
> @@ -285,7 +285,8 @@ static int kvm_s390_pv_deinit_vm_fast(struct kvm *kvm, u16 *rc, u16 *rrc)
> WRITE_ONCE(kvm->arch.gmap->guest_handle, 0);
> KVM_UV_EVENT(kvm, 3, "PROTVIRT DESTROY VM FAST: rc %x rrc %x",
> uvcb.header.rc, uvcb.header.rrc);
> - WARN_ONCE(cc, "protvirt destroy vm fast failed handle %llx rc %x rrc %x",
> + WARN_ONCE(cc && uvcb.header.rc != 0x104,
> + "protvirt destroy vm fast failed handle %llx rc %x rrc %x",
> kvm_s390_pv_get_handle(kvm), uvcb.header.rc, uvcb.header.rrc);
> /* Intended memory leak on "impossible" error */
> if (!cc)
Powered by blists - more mailing lists