Re: [PATCH for 4.19, 5.4] KVM: SVM: Periodically schedule when unregistering regions on destroy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/07/21 07:02, Nobuhiro Iwamatsu wrote:
From: David Rientjes <rientjes@xxxxxxxxxx>

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 <pbonzini@xxxxxxxxxx>

Paolo




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux