From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD9CFC07E96 for ; Thu, 8 Jul 2021 18:19:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9923C617ED for ; Thu, 8 Jul 2021 18:19:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229580AbhGHSWd (ORCPT ); Thu, 8 Jul 2021 14:22:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:57852 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhGHSWc (ORCPT ); Thu, 8 Jul 2021 14:22:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2C84161624; Thu, 8 Jul 2021 18:19:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1625768390; bh=p+hFKrvhmYbXylriW8rlFFxTI8KmTmEO2gVwths0WVk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QxJeeMTIihGtxwreQMVvPB7Lo4SClHR6xTvFyEMBRIXoUvTSS7LBcsTU6X5xwkB6d NfpJoEU6dOcN0dnPB0ipcBG84FiwpLBM6iApY2L2VP/UK3lBYtO4qbLDgdpD7ZRxe9 QbifbvS8Mrp8K3mbIjMOKN12LlP5MZi3/ZVifQtA= Date: Thu, 8 Jul 2021 20:19:48 +0200 From: Greg KH To: Paolo Bonzini Cc: Nobuhiro Iwamatsu , stable@vger.kernel.org, sashal@kernel.org, David Rientjes Subject: Re: [PATCH for 4.19, 5.4] KVM: SVM: Periodically schedule when unregistering regions on destroy Message-ID: References: <20210708050253.341098-1-nobuhiro1.iwamatsu@toshiba.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Thu, Jul 08, 2021 at 11:17:33AM +0200, Paolo Bonzini wrote: > On 08/07/21 07:02, Nobuhiro Iwamatsu wrote: > > From: David Rientjes > > > > commit 7be74942f184fdfba34ddd19a0d995deb34d4a03 upstream. > > Part of 5.9. > > > diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c > > index c5673bda4b66df..3f776e654e3aec 100644 > > --- a/arch/x86/kvm/svm.c > > +++ b/arch/x86/kvm/svm.c > > @@ -1910,6 +1910,7 @@ static void sev_vm_destroy(struct kvm *kvm) > > list_for_each_safe(pos, q, head) { > > __unregister_enc_region_locked(kvm, > > list_entry(pos, struct enc_region, list)); > > + cond_resched(); > > } > > } > > > > Patch is the same as the upstream commit, except for the name of the file. > Thanks! > > Acked-by: Paolo Bonzini Now queued up, thanks. greg k-h