]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SEV: Add cond_resched() to loop in sev_clflush_pages()
authorPeter Gonda <pgonda@google.com>
Wed, 30 Mar 2022 16:43:06 +0000 (09:43 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Apr 2022 12:09:36 +0000 (08:09 -0400)
commit28a25da3f09dfea17420630ea9aa8637efb1744e
treec61f4dd1be0e9263b25cb56053a35a23920d1b51
parent6d94017b7b59bab528be97be158d0d602982e3a6
KVM: SEV: Add cond_resched() to loop in sev_clflush_pages()

Add resched to avoid warning from sev_clflush_pages() with large number
of pages.

Signed-off-by: Peter Gonda <pgonda@google.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: kvm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Message-Id: <20220330164306.2376085-1-pgonda@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c